Commit f4fdfc8e authored by 智勇's avatar 智勇

不过滤环境

parent 30d9f5ea
......@@ -19,9 +19,9 @@ router.beforeEach((to, from, next) => {
if (store.getters.roles.length === 0) {
store.dispatch('GetInfo').then(res => { // 拉取用户信息
next()
}).catch((err) => {
}).catch(() => {
store.dispatch('FedLogOut').then(() => {
Message.error(err || 'Verification failed, please login again')
// Message.error(err || 'Verification failed, please login again')
// next({ path: '/' })
})
})
......
......@@ -58,7 +58,7 @@ service.interceptors.response.use(
duration: 5 * 1000
})
}
return Promise.reject('responseInterceptorsError')
return Promise.reject(res.message || 'responseInterceptorsError')
} else {
return response.data
}
......
......@@ -100,11 +100,12 @@ export default {
methods: {
fetchK8sList() {
fetchKubernetesList().then(res => {
this.nsArray = res.data.namespaces.filter(i => {
if (i.name.indexOf('ka') !== -1) {
return i
}
})
this.nsArray = res.data.namespaces
// this.nsArray = res.data.namespaces.filter(i => {
// if (i.name.indexOf('ka') !== -1) {
// return i
// }
// })
})
},
......
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