Commit b59caad6 authored by 晓彤's avatar 晓彤

Merge branch 'xiaotong'

parents e96eef8c 20fad3f8
......@@ -436,11 +436,16 @@ export default {
const tLoading = this.$loading.service(this.loadingOptions)
getServiceList({ namespace: this.namespace })
.then((resp) => {
const serviceList = resp.data.data
this.array2Object(serviceList)
tLoading.close()
if (resp.data.success === true) {
const serviceList = resp.data.data
this.array2Object(serviceList)
tLoading.close()
} else {
this.$message.error(resp.data.msg)
}
})
.catch(() => {
.catch((error) => {
this.$message({ type: 'error', message: error })
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