fixed: 分配权限时选择错误.
This commit is contained in:
@@ -4,8 +4,8 @@ import axios from 'axios';
|
||||
* 登陆请求
|
||||
*/
|
||||
export interface LoginRequest {
|
||||
username: string | undefined;
|
||||
password: string | undefined;
|
||||
username?: string;
|
||||
password?: string;
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@@ -16,6 +16,7 @@
|
||||
checked-strategy="child"
|
||||
:checkable="true"
|
||||
:animation="false"
|
||||
:only-check-leaf="true"
|
||||
v-model:checked-keys="checkedKeys"
|
||||
v-model:expanded-keys="expandedKeys"
|
||||
:data="treeData" />
|
||||
|
||||
@@ -52,7 +52,7 @@ const useUserStore = defineStore('user', {
|
||||
try {
|
||||
const loginRequest: LoginRequest = {
|
||||
username: loginForm.username,
|
||||
password: md5(loginForm.password),
|
||||
password: md5(loginForm.password as string),
|
||||
};
|
||||
// 执行登陆
|
||||
const res = await userLogin(loginRequest);
|
||||
|
||||
Reference in New Issue
Block a user