From f947866c323861e60b539c12f7c5de97ddb71beb Mon Sep 17 00:00:00 2001 From: whyour Date: Sun, 6 Aug 2023 14:55:51 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E5=85=A8=E9=83=A8=E4=BB=BB?= =?UTF-8?q?=E5=8A=A1=E5=A4=9A=E8=AF=AD=E8=A8=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .umirc.ts | 3 --- src/pages/crontab/index.tsx | 2 +- src/pages/crontab/viewManageModal.tsx | 2 +- src/pages/setting/other.tsx | 2 +- 4 files changed, 3 insertions(+), 6 deletions(-) diff --git a/.umirc.ts b/.umirc.ts index 492d220a..7ff3cc24 100644 --- a/.umirc.ts +++ b/.umirc.ts @@ -13,9 +13,6 @@ export default defineConfig({ outputPath: 'static/dist', fastRefresh: true, favicons: [`https://qn.whyour.cn/favicon.svg`], - mfsu: { - strategy: 'eager', - }, publicPath: process.env.NODE_ENV === 'production' ? './' : '/', proxy: { [`${baseUrl}api/public`]: { diff --git a/src/pages/crontab/index.tsx b/src/pages/crontab/index.tsx index b2f521cd..93b24bb4 100644 --- a/src/pages/crontab/index.tsx +++ b/src/pages/crontab/index.tsx @@ -879,7 +879,7 @@ const Crontab = () => { .filter((x) => !x.isDisabled) .map((x) => ({ ...x, - name: x.name === intl.get('全部任务') ? intl.get('全部任务') : x.name, + name: x.name === '全部任务' ? intl.get('全部任务') : x.name, })); setEnabledCronViews(firstEnableView); setPageConf({ diff --git a/src/pages/crontab/viewManageModal.tsx b/src/pages/crontab/viewManageModal.tsx index 72bbe62a..4c405de1 100644 --- a/src/pages/crontab/viewManageModal.tsx +++ b/src/pages/crontab/viewManageModal.tsx @@ -85,7 +85,7 @@ const ViewManageModal = ({ title: intl.get('名称'), dataIndex: 'name', key: 'name', - render: (v) => (v === intl.get('全部任务') ? intl.get('全部任务') : v) + render: (v) => (v === '全部任务' ? intl.get('全部任务') : v) }, { title: intl.get('类型'), diff --git a/src/pages/setting/other.tsx b/src/pages/setting/other.tsx index d8f072d0..7046e8d4 100644 --- a/src/pages/setting/other.tsx +++ b/src/pages/setting/other.tsx @@ -162,7 +162,7 @@ const Other = ({ return (