From 541a321558ae7fdda1e5689f431b3c4512c1d4b0 Mon Sep 17 00:00:00 2001 From: xlsea Date: Wed, 12 Jun 2024 11:23:00 +0800 Subject: [PATCH] =?UTF-8?q?fix(sj=5F1.1.0=5Fbeta1):=20=E4=BF=AE=E5=A4=8D?= =?UTF-8?q?=E6=96=B0=E5=A2=9E=E5=91=BD=E5=90=8D=E7=A9=BA=E9=97=B4=E9=80=89?= =?UTF-8?q?=E9=A1=B9=E6=9C=AA=E5=88=B7=E6=96=B0=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- public/iconify/ant-design.json | 3 ++ .../modules/namespace-select/index.vue | 38 +++++++++++++++---- src/store/modules/auth/index.ts | 1 + .../modules/namespace-operate-drawer.vue | 3 ++ 4 files changed, 38 insertions(+), 7 deletions(-) diff --git a/public/iconify/ant-design.json b/public/iconify/ant-design.json index 416225f..a7b3460 100644 --- a/public/iconify/ant-design.json +++ b/public/iconify/ant-design.json @@ -29,6 +29,9 @@ "warning-outlined": { "body": "" }, + "check-outlined": { + "body": "" + }, "clock-circle-outlined": { "body": "" }, diff --git a/src/layouts/modules/namespace-select/index.vue b/src/layouts/modules/namespace-select/index.vue index 298c961..6acd90f 100644 --- a/src/layouts/modules/namespace-select/index.vue +++ b/src/layouts/modules/namespace-select/index.vue @@ -1,6 +1,7 @@ @@ -115,4 +128,15 @@ const namespaceName = computed(() => { .namespace-select:hover { border-color: rgb(var(--nprogress-color)); } + +.namespace-select-option { + display: flex; + justify-content: space-between; + align-items: center; + + :deep(.n-ellipsis) { + width: 100%; + max-width: 113px; + } +} diff --git a/src/store/modules/auth/index.ts b/src/store/modules/auth/index.ts index 97569e6..3c35c0a 100644 --- a/src/store/modules/auth/index.ts +++ b/src/store/modules/auth/index.ts @@ -178,6 +178,7 @@ export const useAuthStore = defineStore(SetupStoreId.Auth, () => { loginLoading, resetStore, login, + getUserInfo, initUserInfo, initAppVersion, setNamespaceId diff --git a/src/views/namespace/modules/namespace-operate-drawer.vue b/src/views/namespace/modules/namespace-operate-drawer.vue index 07e7ae5..0535dcb 100644 --- a/src/views/namespace/modules/namespace-operate-drawer.vue +++ b/src/views/namespace/modules/namespace-operate-drawer.vue @@ -5,6 +5,7 @@ import { useFormRules, useNaiveForm } from '@/hooks/common/form'; import OperateDrawer from '@/components/common/operate-drawer.vue'; import { $t } from '@/locales'; import { fetchAddNamespace, fetchEditNamespace } from '@/service/api'; +import { useAuthStore } from '@/store/modules/auth'; defineOptions({ name: 'NamespaceOperateDrawer' @@ -25,6 +26,7 @@ interface Emits { const emit = defineEmits(); +const authStore = useAuthStore(); const visible = defineModel('visible', { default: false }); @@ -98,6 +100,7 @@ async function handleSubmit() { window.$message?.success($t('common.updateSuccess')); } + await authStore.getUserInfo(); closeDrawer(); emit('submitted'); }