소스 검색

Merge branch '12/16SAAS' into iterationApp

lex-xin 3 년 전
부모
커밋
5b2909a1e4
4개의 변경된 파일8개의 추가작업 그리고 3개의 파일을 삭제
  1. 0 0
      dist/app.cc0e2997e5f03b0e757c.js
  2. 0 0
      dist/app.de5d32b1b071615207cc.js
  3. 0 0
      dist/index.html
  4. 8 3
      src/App.vue

파일 크기가 너무 크기때문에 변경 상태를 표시하지 않습니다.
+ 0 - 0
dist/app.cc0e2997e5f03b0e757c.js


파일 크기가 너무 크기때문에 변경 상태를 표시하지 않습니다.
+ 0 - 0
dist/app.de5d32b1b071615207cc.js


파일 크기가 너무 크기때문에 변경 상태를 표시하지 않습니다.
+ 0 - 0
dist/index.html


+ 8 - 3
src/App.vue

@@ -16,8 +16,13 @@ import { queryTeacherInfo } from "@/api/app";
 export default {
   name: "app",
   async created() {
+    const whiteList = ["/order"];
+    const routePath = this.$route.path;
+    if(whiteList.includes(routePath)) {
+      return;
+    }
     try {
-      let Authorization = this.getQueryVariable('Authorization')
+      let Authorization = this.getQueryVariable('Authorization') || null;
       if(window.location.hash.indexOf("+") >= 0) {
         Authorization = Authorization ? Authorization.split('+')[1] : null
         Authorization = ('bearer ' + Authorization)
@@ -28,8 +33,8 @@ export default {
         localStorage.setItem("Authorization", Authorization);
         localStorage.setItem("userInfo", Authorization);
       }
-      const auth = localStorage.getItem("Authorization");
-      const userInfo = localStorage.getItem("userInfo");
+      const auth = localStorage.getItem("Authorization") || "";
+      const userInfo = localStorage.getItem("userInfo") || "";
       if (userInfo || auth) {
         await queryTeacherInfo().then((res) => {
           const result = res.data || null;

이 변경점에서 너무 많은 파일들이 변경되어 몇몇 파일들은 표시되지 않았습니다.