diff --git a/Yi.Ai.Vue3/src/layouts/LayoutBlankPage/index.vue b/Yi.Ai.Vue3/src/layouts/LayoutBlankPage/index.vue index c53ab958..00436be7 100644 --- a/Yi.Ai.Vue3/src/layouts/LayoutBlankPage/index.vue +++ b/Yi.Ai.Vue3/src/layouts/LayoutBlankPage/index.vue @@ -13,7 +13,6 @@ .layout-blank{ height: 100vh; overflow: auto; - //margin: 20px ; } /* 无样式 */ diff --git a/Yi.Ai.Vue3/src/layouts/LayoutVertical/index.vue b/Yi.Ai.Vue3/src/layouts/LayoutVertical/index.vue index 671d7c2b..32264f60 100644 --- a/Yi.Ai.Vue3/src/layouts/LayoutVertical/index.vue +++ b/Yi.Ai.Vue3/src/layouts/LayoutVertical/index.vue @@ -29,7 +29,6 @@ useWindowWidthObserver(); // 应用加载时检查是否需要显示公告弹窗 onMounted(() => { - console.log('announcementStore.shouldShowDialog--', announcementStore.shouldShowDialog); // 检查是否应该显示弹窗(只有"关闭一周"且未超过7天才不显示) // 数据获取已移至 SystemAnnouncementDialog 组件内部,每次打开弹窗时都会获取最新数据 if (announcementStore.shouldShowDialog) { diff --git a/Yi.Ai.Vue3/src/layouts/index.vue b/Yi.Ai.Vue3/src/layouts/index.vue index ed682c5e..ac5f3ba9 100644 --- a/Yi.Ai.Vue3/src/layouts/index.vue +++ b/Yi.Ai.Vue3/src/layouts/index.vue @@ -42,8 +42,12 @@ onMounted(() => { diff --git a/Yi.Ai.Vue3/src/routers/modules/staticRouter.ts b/Yi.Ai.Vue3/src/routers/modules/staticRouter.ts index cf1991bb..5bc7d2cf 100644 --- a/Yi.Ai.Vue3/src/routers/modules/staticRouter.ts +++ b/Yi.Ai.Vue3/src/routers/modules/staticRouter.ts @@ -37,7 +37,7 @@ export const layoutRouter: RouteRecordRaw[] = [ component: () => import('@/pages/products/index.vue'), meta: { title: '产品页面', - keepAlive: true, + keepAlive: 0, isDefaultChat: false, layout: 'blankPage', }, @@ -49,7 +49,7 @@ export const layoutRouter: RouteRecordRaw[] = [ component: () => import('@/pages/modelLibrary/index.vue'), meta: { title: '模型库', - keepAlive: true, + keepAlive: 0, isDefaultChat: false, layout: 'blankPage', }, @@ -60,7 +60,7 @@ export const layoutRouter: RouteRecordRaw[] = [ component: () => import('@/pages/payResult/index.vue'), meta: { title: '支付结果', - keepAlive: true, // 如果需要缓存 + keepAlive: 0, // 如果需要缓存 isDefaultChat: false, // 根据实际情况设置 layout: 'blankPage', // 如果需要自定义布局 }, @@ -88,6 +88,7 @@ export const layoutRouter: RouteRecordRaw[] = [ }, ], }, + ]; // staticRouter[静态路由] 预留 diff --git a/Yi.Ai.Vue3/types/components.d.ts b/Yi.Ai.Vue3/types/components.d.ts index ec0163ce..3705f458 100644 --- a/Yi.Ai.Vue3/types/components.d.ts +++ b/Yi.Ai.Vue3/types/components.d.ts @@ -24,8 +24,6 @@ declare module 'vue' { ElCollapseItem: typeof import('element-plus/es')['ElCollapseItem'] ElContainer: typeof import('element-plus/es')['ElContainer'] ElDatePicker: typeof import('element-plus/es')['ElDatePicker'] - ElDescriptions: typeof import('element-plus/es')['ElDescriptions'] - ElDescriptionsItem: typeof import('element-plus/es')['ElDescriptionsItem'] ElDialog: typeof import('element-plus/es')['ElDialog'] ElDivider: typeof import('element-plus/es')['ElDivider'] ElEmpty: typeof import('element-plus/es')['ElEmpty']