From bd340bd2fe1395e91d7a39a2e90a39cf9b865da4 Mon Sep 17 00:00:00 2001 From: hawk86104 Date: Sat, 8 Feb 2025 08:57:34 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8E=BB=E9=99=A4=E7=BC=96=E8=AF=91=E6=A8=A1?= =?UTF-8?q?=E5=BC=8F=E4=B8=8B=E7=9A=84=20=20=E4=B8=A4=E4=B8=AA=E8=8F=9C?= =?UTF-8?q?=E5=8D=95=E9=BB=98=E8=AE=A4=E8=8E=B7=E5=8F=96=E7=9A=84=20?= =?UTF-8?q?=E8=B0=83=E7=94=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/app.jsx | 4 ++-- src/plugins/preview.vue | 8 +++++--- 2 files changed, 7 insertions(+), 5 deletions(-) diff --git a/src/app.jsx b/src/app.jsx index e9342074..6a6586a5 100644 --- a/src/app.jsx +++ b/src/app.jsx @@ -4,7 +4,7 @@ * @Autor: 地虎降天龙 * @Date: 2023-10-16 10:53:09 * @LastEditors: 地虎降天龙 - * @LastEditTime: 2024-08-11 18:02:39 + * @LastEditTime: 2025-02-08 08:50:30 */ import { defineRuntimeConfig, useModel } from '@fesjs/fes' import { FMenu } from '@fesjs/fes-design' @@ -33,7 +33,7 @@ export default defineRuntimeConfig({ action () { const { signin, getMenu } = useModel('forPreview') signin() - if (process.env.FES_APP_PLUGINS === 'true') { + if (process.env.FES_APP_PLUGINS === 'true' && process.env.NODE_ENV === 'development') { getMenu() } // return new Promise((resolve) => { diff --git a/src/plugins/preview.vue b/src/plugins/preview.vue index 030fda2d..d1239e6f 100644 --- a/src/plugins/preview.vue +++ b/src/plugins/preview.vue @@ -4,7 +4,7 @@ * @Autor: 地虎降天龙 * @Date: 2023-11-18 22:17:49 * @LastEditors: 地虎降天龙 - * @LastEditTime: 2024-12-03 11:52:27 + * @LastEditTime: 2025-02-08 08:52:49 -->