feat: 🎸 权限管理开发中

This commit is contained in:
chenkl
2021-01-15 17:27:24 +08:00
parent 8edb2a3493
commit 6d7ea6694d
40 changed files with 2353 additions and 135 deletions

View File

@@ -25,12 +25,14 @@ import { resetRouter } from '_p/index/router'
import wsCache from '@/cache'
import { useRouter } from 'vue-router'
import { tagsViewStore } from '_p/index/store/modules/tagsView'
import { appStore } from '_p/index/store/modules/app'
export default defineComponent({
name: 'UserInfo',
setup() {
const { replace, push } = useRouter()
async function loginOut(): Promise<void> {
wsCache.clear()
// wsCache.clear()
wsCache.delete(appStore.userInfo)
await resetRouter() // 重置静态路由表
await tagsViewStore.delAllViews() // 删除所有的tags标签页
replace('/login')