Commit 20fad3f8 authored by 晓彤's avatar 晓彤

获取服务列表兼容

parent 81e476f1
...@@ -436,11 +436,16 @@ export default { ...@@ -436,11 +436,16 @@ export default {
const tLoading = this.$loading.service(this.loadingOptions) const tLoading = this.$loading.service(this.loadingOptions)
getServiceList({ namespace: this.namespace }) getServiceList({ namespace: this.namespace })
.then((resp) => { .then((resp) => {
if (resp.data.success === true) {
const serviceList = resp.data.data const serviceList = resp.data.data
this.array2Object(serviceList) this.array2Object(serviceList)
tLoading.close() tLoading.close()
} else {
this.$message.error(resp.data.msg)
}
}) })
.catch(() => { .catch((error) => {
this.$message({ type: 'error', message: error })
tLoading.close() tLoading.close()
}) })
}, },
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment