From 82f805f67811d9d08ac7783a9dedbfe7b1a495a2 Mon Sep 17 00:00:00 2001 From: YangQi Date: Wed, 27 Jul 2022 14:58:25 +0800 Subject: [PATCH] chore: move file (#161) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 使用 views 替换 pages --- src/router/index.js | 2 +- .../index/view => views}/CodemirrorEditor.vue | 20 +++++++++---------- src/{pages/index => views}/index.vue | 7 +++++-- 3 files changed, 16 insertions(+), 13 deletions(-) rename src/{pages/index/view => views}/CodemirrorEditor.vue (96%) rename src/{pages/index => views}/index.vue (84%) diff --git a/src/router/index.js b/src/router/index.js index 0545ef9e8..269fa0d06 100644 --- a/src/router/index.js +++ b/src/router/index.js @@ -1,6 +1,6 @@ import Vue from 'vue' import VueRouter from 'vue-router' -import index from '@/pages/index/index' +import index from '@/views' Vue.use(VueRouter) diff --git a/src/pages/index/view/CodemirrorEditor.vue b/src/views/CodemirrorEditor.vue similarity index 96% rename from src/pages/index/view/CodemirrorEditor.vue rename to src/views/CodemirrorEditor.vue index a13234686..290eade42 100644 --- a/src/pages/index/view/CodemirrorEditor.vue +++ b/src/views/CodemirrorEditor.vue @@ -94,11 +94,11 @@