F change namespace

This commit is contained in:
zhenorzz 2021-06-19 18:23:44 +08:00
parent c13089d5a9
commit 7af53db2c6

View File

@ -167,6 +167,7 @@ import {
getNamespace,
getNamespaceList,
setNamespace,
setNamespaceIdCookie,
removeNamespaceIdCookie,
} from '@/utils/namespace'
import { ElLoading } from 'element-plus'
@ -201,6 +202,7 @@ export default defineComponent({
},
handleNamespaceChange(namespace) {
setNamespace(namespace)
setNamespaceIdCookie(namespace.id.toString())
ElLoading.service({ fullscreen: true })
location.reload()
},