mirror of
https://gitee.com/yiming_chang/vue-pure-admin.git
synced 2024-12-05 12:47:53 +08:00
fix: router
This commit is contained in:
parent
89f4817cfe
commit
99140bbd1e
@ -1,7 +1,7 @@
|
||||
import { defineStore } from "pinia";
|
||||
import { store } from "/@/store";
|
||||
import { userType } from "./types";
|
||||
import { useRouter } from "vue-router";
|
||||
import { router } from "/@/router";
|
||||
import { getLogin, refreshToken } from "/@/api/user";
|
||||
import { storageLocal, storageSession } from "/@/utils/storage";
|
||||
import { getToken, setToken, removeToken } from "/@/utils/auth";
|
||||
@ -64,7 +64,7 @@ export const useUserStore = defineStore({
|
||||
}
|
||||
}
|
||||
]);
|
||||
useRouter().push("/login");
|
||||
router.push("/login");
|
||||
},
|
||||
// 刷新token
|
||||
async refreshToken(data) {
|
||||
|
Loading…
Reference in New Issue
Block a user