支持全局异常和统一返回结果

This commit is contained in:
648540858
2022-08-22 16:16:31 +08:00
parent 5461b8ebf2
commit 042b28b2d6
31 changed files with 461 additions and 186 deletions

View File

@@ -87,8 +87,7 @@ export default {
platformId: that.platformId,
parentId: parentId
}
})
.then((res)=> {
}).then((res)=> {
if (res.data.code === 0) {
if (typeof(callback) === 'function') {
callback(res.data.data)
@@ -140,8 +139,7 @@ export default {
id: id,
platformId: this.platformId,
}
})
.then((res) => {
}).then((res) => {
if (res.data.code === 0) {
console.log("移除成功")
node.parent.loaded = false
@@ -163,8 +161,7 @@ export default {
platformId: this.platformId,
catalogId: id,
}
})
.then((res)=> {
}).then((res)=> {
if (res.data.code === 0) {
this.defaultCatalogIdSign = id;
}