mirror of
https://gitee.com/orangeform/orange-admin.git
synced 2026-01-17 18:46:36 +08:00
修复bug
This commit is contained in:
@@ -1,7 +1,9 @@
|
||||
import { API_CONTEXT } from '../config';
|
||||
import { loginParam, LoginUserInfo } from '@/types/upms/login';
|
||||
import { UserInfo } from '@/types/upms/user';
|
||||
import { BaseController } from '@/api/BaseController';
|
||||
import { API_CONTEXT } from '../config';
|
||||
import { RequestOption, TableData } from '@/common/http/types';
|
||||
import { ANY_OBJECT } from '@/types/generic';
|
||||
|
||||
export default class LoginController extends BaseController {
|
||||
static login(params: loginParam) {
|
||||
@@ -11,4 +13,8 @@ export default class LoginController extends BaseController {
|
||||
static logout() {
|
||||
return super.post(API_CONTEXT + '/upms/login/doLogout', {});
|
||||
}
|
||||
|
||||
static changePassword(params: ANY_OBJECT, httpOptions?: RequestOption) {
|
||||
return super.post(API_CONTEXT + '/upms/login/changePassword', params, httpOptions);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user