feat: 前端优化

This commit is contained in:
陈淳
2024-01-15 17:03:38 +08:00
parent 71aabe9fe4
commit 6bec254d49

View File

@@ -36,13 +36,9 @@ export default function useAuths(opt) {
return token; return token;
}; };
const isLogin=computed(()=>{ const isLogin=computed(()=>{
return getToken()? true : false
var token= Local.get(TokenKey); });
return token? true : false;
})
// 存储token到cookies // 存储token到cookies
const setToken = (token) => { const setToken = (token) => {