From 1190d08a87b787804cfab3aa7d7046d01cdabd11 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=BC=A0=E4=BC=A0=E9=BE=99?= Date: Thu, 12 May 2022 19:50:21 +0800 Subject: [PATCH] =?UTF-8?q?refactor:=20=E8=A7=84=E8=8C=83=E6=96=87?= =?UTF-8?q?=E4=BB=B6=E5=A4=B9=E7=BB=93=E6=9E=84?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/router/routes/index.js | 8 ++++---- src/views/test-page/{TestDialog.vue => dialog/index.vue} | 0 .../test-page/{TestKeepAlive.vue => keep-alive/index.vue} | 0 .../test-page/{TestMessage.vue => message/index.vue} | 0 src/views/test-page/{TestUnocss.vue => unocss/index.vue} | 0 5 files changed, 4 insertions(+), 4 deletions(-) rename src/views/test-page/{TestDialog.vue => dialog/index.vue} (100%) rename src/views/test-page/{TestKeepAlive.vue => keep-alive/index.vue} (100%) rename src/views/test-page/{TestMessage.vue => message/index.vue} (100%) rename src/views/test-page/{TestUnocss.vue => unocss/index.vue} (100%) diff --git a/src/router/routes/index.js b/src/router/routes/index.js index 3073a81..960bdb0 100644 --- a/src/router/routes/index.js +++ b/src/router/routes/index.js @@ -99,7 +99,7 @@ export const basicRoutes = [ { name: 'Unocss', path: 'unocss', - component: () => import('@/views/test-page/TestUnocss.vue'), + component: () => import('@/views/test-page/unocss/index.vue'), meta: { title: '测试unocss', }, @@ -107,7 +107,7 @@ export const basicRoutes = [ { name: 'Message', path: 'message', - component: () => import('@/views/test-page/TestMessage.vue'), + component: () => import('@/views/test-page/message/index.vue'), meta: { title: '测试Message', }, @@ -115,7 +115,7 @@ export const basicRoutes = [ { name: 'Dialog', path: 'dialog', - component: () => import('@/views/test-page/TestDialog.vue'), + component: () => import('@/views/test-page/dialog/index.vue'), meta: { title: '测试Dialog', }, @@ -123,7 +123,7 @@ export const basicRoutes = [ { name: 'TestKeepAlive', path: 'keep-alive', - component: () => import('@/views/test-page/TestKeepAlive.vue'), + component: () => import('@/views/test-page/keep-alive/index.vue'), meta: { title: '测试Keep-Alive', keepAlive: true, diff --git a/src/views/test-page/TestDialog.vue b/src/views/test-page/dialog/index.vue similarity index 100% rename from src/views/test-page/TestDialog.vue rename to src/views/test-page/dialog/index.vue diff --git a/src/views/test-page/TestKeepAlive.vue b/src/views/test-page/keep-alive/index.vue similarity index 100% rename from src/views/test-page/TestKeepAlive.vue rename to src/views/test-page/keep-alive/index.vue diff --git a/src/views/test-page/TestMessage.vue b/src/views/test-page/message/index.vue similarity index 100% rename from src/views/test-page/TestMessage.vue rename to src/views/test-page/message/index.vue diff --git a/src/views/test-page/TestUnocss.vue b/src/views/test-page/unocss/index.vue similarity index 100% rename from src/views/test-page/TestUnocss.vue rename to src/views/test-page/unocss/index.vue