From be935eb44e363665b99288f78f03cb3053274200 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?jackhoo=28=E8=83=A1=E5=BD=AA=29?= <1679575151@qq.com> Date: Mon, 27 Nov 2023 17:59:31 +0800 Subject: [PATCH] =?UTF-8?q?fix(demo):=20=E4=BF=AE=E5=A4=8D=E5=BC=95?= =?UTF-8?q?=E5=AF=BC=E9=A1=B5=E6=96=87=E4=BB=B6=E5=90=8D=E9=97=AE=E9=A2=98?= =?UTF-8?q?=20(#3352)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: jackhoo_98 --- src/locales/lang/en/routes/demo.json | 2 +- src/locales/lang/zh-CN/routes/demo.json | 2 +- .../routes/modules/demo/{setup.ts => steps.ts} | 18 +++++++++--------- src/views/demo/{setup => steps}/index.vue | 0 4 files changed, 11 insertions(+), 11 deletions(-) rename src/router/routes/modules/demo/{setup.ts => steps.ts} (56%) rename src/views/demo/{setup => steps}/index.vue (100%) diff --git a/src/locales/lang/en/routes/demo.json b/src/locales/lang/en/routes/demo.json index 3dbabec3c..7e71f9eed 100644 --- a/src/locales/lang/en/routes/demo.json +++ b/src/locales/lang/en/routes/demo.json @@ -142,7 +142,7 @@ "backPage": "Page", "backBtn": "Button" }, - "setup": { + "steps": { "page": "Intro page" }, "system": { diff --git a/src/locales/lang/zh-CN/routes/demo.json b/src/locales/lang/zh-CN/routes/demo.json index d71252762..aec43785e 100644 --- a/src/locales/lang/zh-CN/routes/demo.json +++ b/src/locales/lang/zh-CN/routes/demo.json @@ -141,7 +141,7 @@ "backPage": "页面权限", "backBtn": "按钮权限" }, - "setup": { + "steps": { "page": "引导页" }, "system": { diff --git a/src/router/routes/modules/demo/setup.ts b/src/router/routes/modules/demo/steps.ts similarity index 56% rename from src/router/routes/modules/demo/setup.ts rename to src/router/routes/modules/demo/steps.ts index c29418442..69287c387 100644 --- a/src/router/routes/modules/demo/setup.ts +++ b/src/router/routes/modules/demo/steps.ts @@ -3,24 +3,24 @@ import type { AppRouteModule } from '@/router/types'; import { LAYOUT } from '@/router/constant'; import { t } from '@/hooks/web/useI18n'; -const setup: AppRouteModule = { - path: '/setup', - name: 'SetupDemo', +const steps: AppRouteModule = { + path: '/steps', + name: 'StepsDemo', component: LAYOUT, - redirect: '/setup/index', + redirect: '/steps/index', meta: { orderNo: 90000, hideChildrenInMenu: true, icon: 'whh:paintroll', - title: t('routes.demo.setup.page'), + title: t('routes.demo.steps.page'), }, children: [ { path: 'index', - name: 'SetupDemoPage', - component: () => import('@/views/demo/setup/index.vue'), + name: 'StepsDemoPage', + component: () => import('@/views/demo/steps/index.vue'), meta: { - title: t('routes.demo.setup.page'), + title: t('routes.demo.steps.page'), icon: 'whh:paintroll', hideMenu: true, }, @@ -28,4 +28,4 @@ const setup: AppRouteModule = { ], }; -export default setup; +export default steps; diff --git a/src/views/demo/setup/index.vue b/src/views/demo/steps/index.vue similarity index 100% rename from src/views/demo/setup/index.vue rename to src/views/demo/steps/index.vue