解决登录404异常

This commit is contained in:
icssoa 2022-10-13 15:05:19 +08:00
parent 74b83f645c
commit 10eff77494

View File

@ -77,7 +77,7 @@ export const useUserStore = defineStore("user", function () {
// 退出 // 退出
async function logout() { async function logout() {
clear(); clear();
router.clear(); // router.clear();
router.push("/login"); router.push("/login");
} }