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