Commit f4fdfc8e authored by 智勇's avatar 智勇

不过滤环境

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