feat: 指令菜单功能 (#1407)
* feat: 指令菜单功能 * 增加快捷指令功能 * 废弃jwt结构StandardClaims替换为RegisteredClaims #1409 * 调整快捷指令登出操作 --------- Co-authored-by: krank <emosick@qq.com>
This commit is contained in:
committed by
GitHub
co-authored by
krank
parent
6ad7ccdd6e
commit
5f0402043a
@@ -67,6 +67,13 @@ export const useUserStore = defineStore('user', () => {
|
||||
})
|
||||
await router.replace({ name: userInfo.value.authority.defaultRouter })
|
||||
loadingInstance.value.close()
|
||||
|
||||
const isWin = ref(/windows/i.test(navigator.userAgent))
|
||||
if (isWin.value) {
|
||||
window.localStorage.setItem('osType', 'WIN')
|
||||
} else {
|
||||
window.localStorage.setItem('osType', 'MAC')
|
||||
}
|
||||
return true
|
||||
}
|
||||
} catch (e) {
|
||||
|
||||
Reference in New Issue
Block a user