From a889c53bfc77d762edab2c37ba00e9dbe43e3f3a Mon Sep 17 00:00:00 2001 From: 18631081161 <2088094923@qq.com> Date: Sun, 8 Feb 2026 14:56:40 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=9A=E5=91=98=E6=90=9C=E7=B4=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- admin/src/layouts/DefaultLayout.vue | 16 +++---- admin/src/views/user/list.vue | 44 +++++++++---------- miniapp/config/index.js | 2 +- .../Services/AdminPopupService.cs | 2 +- 4 files changed, 32 insertions(+), 32 deletions(-) diff --git a/admin/src/layouts/DefaultLayout.vue b/admin/src/layouts/DefaultLayout.vue index b76f2f4..6909e10 100644 --- a/admin/src/layouts/DefaultLayout.vue +++ b/admin/src/layouts/DefaultLayout.vue @@ -5,7 +5,7 @@ * 支持响应式布局 * Requirements: 2.1, 2.2, 2.4 */ -import { computed, onMounted, onUnmounted } from 'vue' +import { computed, onMounted, onUnmounted, ref } from 'vue' import { useAppStore } from '@/stores/app' import type { DeviceType } from '@/stores/app' import Sidebar from './Sidebar.vue' @@ -13,6 +13,9 @@ import Header from './Header.vue' const appStore = useAppStore() +// 需要缓存的页面组件名称 +const cachedViews = ref(['UserListPage']) + // 侧边栏折叠状态 const isCollapsed = computed(() => appStore.isSidebarCollapsed) @@ -107,13 +110,10 @@ onUnmounted(() => { - - - - + + + + diff --git a/admin/src/views/user/list.vue b/admin/src/views/user/list.vue index 907ca98..a1807cb 100644 --- a/admin/src/views/user/list.vue +++ b/admin/src/views/user/list.vue @@ -1,3 +1,7 @@ + + @@ -480,7 +480,7 @@ onMounted(() => { v-if="row.isMember" type="warning" > - {{ row.memberLevelText }} + {{ getMemberLevelName(row.memberLevel) }} 非会员 diff --git a/miniapp/config/index.js b/miniapp/config/index.js index 7794e45..6bdbd8d 100644 --- a/miniapp/config/index.js +++ b/miniapp/config/index.js @@ -23,7 +23,7 @@ const ENV = { } // 当前环境 - 开发时使用 development,打包时改为 production -const CURRENT_ENV = 'development' +const CURRENT_ENV = 'production' // 导出配置 export const config = { diff --git a/server/src/XiangYi.Application/Services/AdminPopupService.cs b/server/src/XiangYi.Application/Services/AdminPopupService.cs index 2df3980..1296a62 100644 --- a/server/src/XiangYi.Application/Services/AdminPopupService.cs +++ b/server/src/XiangYi.Application/Services/AdminPopupService.cs @@ -116,7 +116,7 @@ public class AdminPopupService : IAdminPopupService public async Task UpdatePopupByTypeAsync(int popupType, UpdatePopupRequest request, long adminId) { // Validate popup type - if (popupType < 1 || popupType > 3) + if (popupType < 1 || popupType > 4) { throw new BusinessException(ErrorCodes.InvalidParameter, "无效的弹窗类型"); }