dai-vue-module-m

d

2022/4/13 16:44:36

更改列表

config.js 7(+0 -7)

routes.js 3(+1 -2)

详细信息

routes.js 3(+1 -2)

diff --git a/routes.js b/routes.js
index 479df43..aaaaf9e 100644
--- a/routes.js
+++ b/routes.js
@@ -1,8 +1,7 @@
-import config from './config.js';
 const routes = [
     {
         path: '/test',
-        component: { template: '<router-view class="'+config.className+'"></router-view>' },
+        component: { template: '<router-view class="module-test"></router-view>' },
         children: [
             { path: 'index', component: () => import('./page/index.vue'), meta: { pageName: '模块模板' } }
         ]
diff --git a/static/style/style.less b/static/style/style.less
index 949f57a..cfe09c8 100644
--- a/static/style/style.less
+++ b/static/style/style.less
@@ -1,4 +1,4 @@
 //模块内样式
-.module-test{
+.module-test {
     background-color: #f00;
-}
\ No newline at end of file
+}