fixed: 分配权限时选择错误.
This commit is contained in:
@@ -4,8 +4,8 @@ import axios from 'axios';
|
|||||||
* 登陆请求
|
* 登陆请求
|
||||||
*/
|
*/
|
||||||
export interface LoginRequest {
|
export interface LoginRequest {
|
||||||
username: string | undefined;
|
username?: string;
|
||||||
password: string | undefined;
|
password?: string;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
@@ -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" />
|
||||||
|
|||||||
@@ -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);
|
||||||
|
|||||||
Reference in New Issue
Block a user