소스 검색

修改标题

qinnamin 3 년 전
부모
커밋
4f8c9dcd30
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  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中