Browse Source

cps:返钱、赚钱静态页面

panyong 3 years ago
parent
commit
68d981dd77
2 changed files with 5 additions and 2 deletions
  1. 1 1
      htmldev/cps/src/router/index.js
  2. 4 1
      htmldev/cps/src/views/marketing/index.vue

+ 1 - 1
htmldev/cps/src/router/index.js

@@ -1,6 +1,6 @@
 import Vue from 'vue'
 import VueRouter from 'vue-router'
-import { updateWechatToken } from '../utils'
+import { updateWechatToken } from '@/utils'
 
 Vue.use(VueRouter)
 

+ 4 - 1
htmldev/cps/src/views/marketing/index.vue

@@ -18,7 +18,10 @@
         </li>
       </ul>
     </div>
-    <router-view/>
+    <keep-alive>
+      <router-view v-if="$route.meta.keepAlive"/>
+    </keep-alive>
+    <router-view v-if="!$route.meta.keepAlive"/>
     <a
       class="jump-mine"
       href="javascript:;">我的</a>