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');
}