feat: 前端优化
This commit is contained in:
@@ -36,13 +36,9 @@ export default function useAuths(opt) {
|
||||
return token;
|
||||
};
|
||||
|
||||
|
||||
const isLogin=computed(()=>{
|
||||
|
||||
var token= Local.get(TokenKey);
|
||||
return token? true : false;
|
||||
|
||||
})
|
||||
return getToken()? true : false
|
||||
});
|
||||
|
||||
// 存储token到cookies
|
||||
const setToken = (token) => {
|
||||
|
||||
Reference in New Issue
Block a user