one
This commit is contained in:
@@ -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")
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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',
|
||||
|
||||
Reference in New Issue
Block a user