fixed: 分配权限时选择错误.

This commit is contained in:
lijiahang
2023-09-25 16:50:36 +08:00
parent 3c930a1b8b
commit 80e5e241fa
5 changed files with 4 additions and 3 deletions

View File

@@ -4,8 +4,8 @@ import axios from 'axios';
* 登陆请求
*/
export interface LoginRequest {
username: string | undefined;
password: string | undefined;
username?: string;
password?: string;
}
/**

View File

@@ -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" />

View File

@@ -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);