lsc 3 years ago
parent
commit
34970634f3
3 changed files with 4 additions and 5 deletions
  1. 0 1
      src/App.vue
  2. 2 2
      src/components/tools/leftBar.vue
  3. 2 2
      src/main.js

+ 0 - 1
src/App.vue

@@ -91,7 +91,6 @@ export default {
     console.log(this.$store.state);
     // this.$store.commit("update", ["isLogin", 123]);
     this.routerP();
-    this.getnCount();
   },
   methods: {
     Login() {

+ 2 - 2
src/components/tools/leftBar.vue

@@ -46,10 +46,10 @@
             </el-menu-item>
             <el-menu-item index="/template">
               <div class="img" v-if="path == '/template'">
-                <img src="../../assets/icon/course-active.png" alt="" />
+                <img src="../../assets/icon/works-active.png" alt="" />
               </div>
               <div class="img" v-else>
-                <img src="../../assets/icon/course.png" alt="" />
+                <img src="../../assets/icon/works.png" alt="" />
               </div>
               <span slot="title">模板管理</span>
             </el-menu-item>

+ 2 - 2
src/main.js

@@ -41,8 +41,8 @@ router.beforeEach((to, from, next) => {
   //     store.commit("update", ["isLogin", true]);
   //     // var info = JSON.parse(window.sessionStorage.getItem("userInfo"))
   //     store.commit("update", ["userInfo", info]);
-  //     store.state.luyou = store.state.luyou + 1
-  //     store.commit("update", ["luyou", store.state.luyou]);
+      store.state.luyou = store.state.luyou + 1
+      store.commit("update", ["luyou", store.state.luyou]);
   //     next()
   //   } else {
   //     const loading = Loading.service({