qinnamin il y a 3 ans
Parent
commit
4f8c9dcd30
1 fichiers modifiés avec 2 ajouts et 2 suppressions
  1. 2 2
      src/common/headline.vue

+ 2 - 2
src/common/headline.vue

@@ -51,9 +51,9 @@ export default {
           (this.$store.state.name == undefined) |
           (this.$store.state.name == null)
         ) {
-          let currName  =JSON.parse(
+          let currName  ="admin" || JSON.parse(
            window.sessionStorage.getItem("user")
-         ).username || "admin";
+         ).username ;
           this.$store.commit("updateName", currName);
         }
         // 把username从session中取出来放到store中