Commit 8681a1a8 authored by 智勇's avatar 智勇

异常处理

parent 2679e0d8
......@@ -57,7 +57,7 @@ service.interceptors.response.use(
duration: 5 * 1000
})
}
return Promise.reject('error')
return Promise.reject('responseInterceptorsError')
}
return response.data
},
......
......@@ -154,6 +154,9 @@ export default {
this.timer = 0
this.disableBool = true
this.syncQuery(this.location)
}).catch(err => {
// eslint-disable-next-line no-empty
if (err) {}
})
}
})
......
......@@ -116,6 +116,7 @@ export default {
createData() {
const param = {
namespace: this.namespace,
description: 'deploy',
dependant: this.dependant
}
......
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