feat: 完成登录页面接入pure

This commit is contained in:
橙子
2024-08-29 22:59:16 +08:00
parent 5f402488d4
commit bbe1a44788
9 changed files with 61 additions and 37 deletions

View File

@@ -33,7 +33,7 @@ function onChange() {
useUserStoreHook()
.loginByUsername({ username: username.value, password: "admin123" })
.then(res => {
if (res.success) {
if (res.status == 200) {
storageLocal().removeItem("async-routes");
usePermissionStoreHook().clearAllCachePage();
initRouter();