Parcourir la source

更新优化打包

lex-xin il y a 3 ans
Parent
commit
9876cb0ea0
4 fichiers modifiés avec 5 ajouts et 3 suppressions
  1. 0 0
      dist/app.4e4f7d14426ced9f78ba.js
  2. 0 0
      dist/app.d175f1df0ec1456755ea.js
  3. 0 0
      dist/index.html
  4. 5 3
      src/App.vue

Fichier diff supprimé car celui-ci est trop grand
+ 0 - 0
dist/app.4e4f7d14426ced9f78ba.js


Fichier diff supprimé car celui-ci est trop grand
+ 0 - 0
dist/app.d175f1df0ec1456755ea.js


Fichier diff supprimé car celui-ci est trop grand
+ 0 - 0
dist/index.html


+ 5 - 3
src/App.vue

@@ -16,9 +16,11 @@ import { queryTeacherInfo } from "@/api/app";
 export default {
   name: "app",
   async created() {
-    const whiteList = ["/order"];
-    const routePath = this.$route.path;
-    if (!whiteList.includes(routePath)) {
+    const whiteList = ["#/order"];
+    // const routePath = this.$route.path;
+    const locationHash = window.location.hash;
+    console.log(this.$route.path, locationHash);
+    if (locationHash.includes('#/order') == -1) {
       try {
         let Authorization = this.getQueryVariable("Authorization") || null;
         if (window.location.hash.indexOf("+") >= 0) {

Certains fichiers n'ont pas été affichés car il y a eu trop de fichiers modifiés dans ce diff