feat: 完成登录页面接入pure
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user