From 80e5e241faa178619eadbda68230ed1aab0aa47e Mon Sep 17 00:00:00 2001 From: lijiahang Date: Mon, 25 Sep 2023 16:50:36 +0800 Subject: [PATCH] =?UTF-8?q?fixed:=20=E5=88=86=E9=85=8D=E6=9D=83=E9=99=90?= =?UTF-8?q?=E6=97=B6=E9=80=89=E6=8B=A9=E9=94=99=E8=AF=AF.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- orion-ops-ui/src/api/user/auth.ts | 4 ++-- .../src/components/menu/selector/menu-selector-tree.vue | 1 + orion-ops-ui/src/store/modules/user/index.ts | 2 +- sql/{init-schema.sql => init-1-schema.sql} | 0 sql/{init-data.sql => init-2-data.sql} | 0 5 files changed, 4 insertions(+), 3 deletions(-) rename sql/{init-schema.sql => init-1-schema.sql} (100%) rename sql/{init-data.sql => init-2-data.sql} (100%) diff --git a/orion-ops-ui/src/api/user/auth.ts b/orion-ops-ui/src/api/user/auth.ts index b5e75e19..cac0cad9 100644 --- a/orion-ops-ui/src/api/user/auth.ts +++ b/orion-ops-ui/src/api/user/auth.ts @@ -4,8 +4,8 @@ import axios from 'axios'; * 登陆请求 */ export interface LoginRequest { - username: string | undefined; - password: string | undefined; + username?: string; + password?: string; } /** diff --git a/orion-ops-ui/src/components/menu/selector/menu-selector-tree.vue b/orion-ops-ui/src/components/menu/selector/menu-selector-tree.vue index 8887eb02..cec4a099 100644 --- a/orion-ops-ui/src/components/menu/selector/menu-selector-tree.vue +++ b/orion-ops-ui/src/components/menu/selector/menu-selector-tree.vue @@ -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" /> diff --git a/orion-ops-ui/src/store/modules/user/index.ts b/orion-ops-ui/src/store/modules/user/index.ts index a50d09d7..4c19d533 100644 --- a/orion-ops-ui/src/store/modules/user/index.ts +++ b/orion-ops-ui/src/store/modules/user/index.ts @@ -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); diff --git a/sql/init-schema.sql b/sql/init-1-schema.sql similarity index 100% rename from sql/init-schema.sql rename to sql/init-1-schema.sql diff --git a/sql/init-data.sql b/sql/init-2-data.sql similarity index 100% rename from sql/init-data.sql rename to sql/init-2-data.sql