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 { export interface LoginRequest {
username: string | undefined; username?: string;
password: string | undefined; password?: string;
} }
/** /**

View File

@@ -16,6 +16,7 @@
checked-strategy="child" checked-strategy="child"
:checkable="true" :checkable="true"
:animation="false" :animation="false"
:only-check-leaf="true"
v-model:checked-keys="checkedKeys" v-model:checked-keys="checkedKeys"
v-model:expanded-keys="expandedKeys" v-model:expanded-keys="expandedKeys"
:data="treeData" /> :data="treeData" />

View File

@@ -52,7 +52,7 @@ const useUserStore = defineStore('user', {
try { try {
const loginRequest: LoginRequest = { const loginRequest: LoginRequest = {
username: loginForm.username, username: loginForm.username,
password: md5(loginForm.password), password: md5(loginForm.password as string),
}; };
// 执行登陆 // 执行登陆
const res = await userLogin(loginRequest); const res = await userLogin(loginRequest);