This commit is contained in:
2025-04-24 01:53:49 +08:00
parent 28ebe05a64
commit b63fd83eea
18 changed files with 246 additions and 40 deletions

View File

@@ -15,7 +15,7 @@ export class LoginLogic<T extends VueCustomize> extends BaseLogic implements Met
public UserLoginParams: LoginParams = {
admin_user_name: "moehu",
admin_user_pwd: "111",
admin_user_pwd: "lb714500",
}
@Autowired
@@ -31,13 +31,13 @@ export class LoginLogic<T extends VueCustomize> extends BaseLogic implements Met
}
public async UserLogin (): Promise<void> {
// let res = await this.UserService.Login(this.UserLoginParams);
// this._.$setStorage('token', res.user_token);
this._.$setStorage('token', "234323erfdwerfg");
// this._.$setStorage('user_info', res.user_info);
this._.$setStorage('user_info', {
admin_user_name: '张三'
});
let res = await this.UserService.Login(this.UserLoginParams);
this._.$setStorage('token', res.user_token);
// this._.$setStorage('token', "234323erfdwerfg");
this._.$setStorage('user_info', res.user_info);
// this._.$setStorage('user_info', {
// admin_user_name: '张三'
// });
await this._.$router.replace("/home")
}
}

View File

@@ -23,7 +23,8 @@ export class ConfigureConfig {
ProdUrl: string,
ApiList: { [ key: string ]: string }
} = {
DevUrl: 'https://moehu.net/admin',
// DevUrl: 'http://[240e:362:2209:6a00:2e0:4cff:fe09:1f7f]:8090/admin',
DevUrl: 'http://192.168.31.100:8090/admin',
ProdUrl: 'https://moehu.net/admin',
ApiList: {
Login: '/user/Login',