dai-vue-temp-m

2022/4/25 15:07:53

更改列表

main/index.js 3(+2 -1)

详细信息

main/index.js 3(+2 -1)

diff --git a/main/index.js b/main/index.js
index a7b7ce9..c4a461e 100644
--- a/main/index.js
+++ b/main/index.js
@@ -26,7 +26,8 @@ var vm = DaiVue(
         config,
         //引用的所有模块
         modules: modules,
-
+        //主路由模块,可以是一个布局模块
+        main: { template: '<keep-alive><router-view></router-view></keep-alive>' },
         use: {
             // Vant: { plugin: Vant }
         },