update about api
This commit is contained in:
@@ -70,8 +70,7 @@ export default {
|
||||
this.$u.api.articlelist({
|
||||
type: that.type,
|
||||
page: that.num
|
||||
})
|
||||
.then(res => {
|
||||
}).then(res => {
|
||||
if (res.errCode != 0) {
|
||||
this.$refs.uToast.show({
|
||||
title: res.message,
|
||||
@@ -101,8 +100,7 @@ export default {
|
||||
that.show = false;
|
||||
this.$u.api.delarticle({
|
||||
article_id: that.delid
|
||||
})
|
||||
.then(res => {
|
||||
}).then(res => {
|
||||
console.log(res)
|
||||
if (res.errCode != 0) {
|
||||
this.$refs.uToast.show({
|
||||
@@ -115,6 +113,7 @@ export default {
|
||||
type: 'success'
|
||||
});
|
||||
// 删除后更新页面
|
||||
this.delid = null
|
||||
this.newlist = [];
|
||||
that.num=1
|
||||
that.getlist()
|
||||
|
||||
Reference in New Issue
Block a user