Browse Source

Merge branch '07/06musicArchives' into test

mo 3 years ago
parent
commit
90f50ac11e

+ 5 - 5
src/layout/components/instructions.vue

@@ -222,7 +222,7 @@ export default {
       this.isShow = !this.isShow;
     },
     setBtnStatus(to) {
-           console.log(to.path)
+          //  console.log(to.path)
       this.str = "";
       if (instructionList.hasOwnProperty(to.path)) {
         this.isShowBtn = true;
@@ -331,10 +331,10 @@ export default {
                 if (path.length > 0) {
                   for (let i in path) {
                     if (path[i]?.getAttribute("title")) {
-                      console.log(
-                        "打开视频链接",
-                        e.path[i].getAttribute("title")
-                      );
+                      // console.log(
+                      //   "打开视频链接",
+                      //   e.path[i].getAttribute("title")
+                      // );
                       this.src = e.path[i].getAttribute("title");
                       this.showVideo = true;
                       this.$nextTick((res) => {

+ 2 - 2
src/store/modules/permission.js

@@ -181,7 +181,7 @@ function recursionPermission(arr) {
   })
 }
 function setDetailRoute(accessedRoutes) {
-  console.log(accessedRoutes)
+  // console.log(accessedRoutes)
   accessedRoutes.forEach(route => {
     // console.log(route.path)
     if (route.path == '/main') {
@@ -685,7 +685,7 @@ const actions = {
           if(res.data?.length <1){
             // 一条权限都没有
             //退出 跳到登录页 提示'该账号无任何权限'
-            console.log(store.dispatch)
+            // console.log(store.dispatch)
             await store.dispatch("user/logout");
             localStorage.removeItem("firstMenuUrl");
             // await this.$store.dispatch("permission/removePermission")

+ 5 - 0
src/views/login/index.vue

@@ -63,6 +63,7 @@
 
 <script>
 import { validUsername } from "@/utils/validate";
+import { Searchs } from '@/helpers'
 export default {
   name: "Login",
   data () {
@@ -124,6 +125,10 @@ export default {
       });
     },
     handleLogin () {
+      // 清除所有savekey
+ const s = new Searchs();
+       s.removeAll()
+
       // 判断是否点击了记住密码 =>  存储密码
       if (this.isSaveUserInfo) {
         localStorage.setItem('username', this.loginForm.username);

+ 1 - 1
src/views/main/baseinfo/management.vue

@@ -171,7 +171,7 @@ export default {
           obj[str] = this.data[str];
         }
       });
-      console.log(obj);
+      // console.log(obj);
       return obj;
     },
     items2() {