戴艳蓉 3 năm trước cách đây
mục cha
commit
3a2c83b055

Những thai đổi đã bị hủy bỏ vì nó quá lớn
+ 0 - 0
dist/index.html


Những thai đổi đã bị hủy bỏ vì nó quá lớn
+ 0 - 0
dist/static/js/app.1b7c289d.js


BIN
dist/static/js/app.f8f84947.js.gz → dist/static/js/app.1b7c289d.js.gz


Những thai đổi đã bị hủy bỏ vì nó quá lớn
+ 0 - 0
dist/static/js/app.f8f84947.js


+ 26 - 21
src/App.vue

@@ -49,7 +49,8 @@ export default {
         if (this.code != null && this.code != "") {
           await this.setcode(this.code);
         } else {
-          await this.logout();
+           alert(+'GOTO')
+          // await this.logout();
         }
       });
     },
@@ -59,14 +60,16 @@ export default {
       this.$store
         .dispatch("user/dingUserInfor", model)
         .then(async (res) => {
-          if (res === "success") {
-            await this.getMenu();
-          } else {
-            await this.logout();
-          }
+          alert("s"+JSON.stringify(res) )
+          // if (res === "success") {
+          //   await this.getMenu();
+          // } else {
+          //   await this.logout();
+          // }
         })
         .catch(async (err) => {
-          await this.logout();
+           alert(err)
+          // await this.logout();
         });
     },
     async getMenu() {
@@ -75,22 +78,24 @@ export default {
         .then(async (res) => {
           console.log(res);
           alert(res+"")
-          if (res === "noToken") {
-            await this.logout();
-          } else if (res === "success") {
-            if (
-              this.$route.path === "/loadingPage" ||
-              this.$route.path === "/" ||
-              this.$route.path === "/login"
-            ) {
-              window.vm.$router.replace("/welcome");
-            }
-          } else {
-            // await this.logout();
-          }
+          // if (res === "noToken") {
+          //   await this.logout();
+          // } else if (res === "success") {
+          //   if (
+          //     this.$route.path === "/loadingPage" ||
+          //     this.$route.path === "/" ||
+          //     this.$route.path === "/login"
+          //   ) {
+          //     window.vm.$router.replace("/welcome");
+          //   }
+          // } else {
+          //   // await this.logout();
+          // }
         })
         .catch(async (err) => {
-          await this.logout();
+             alert(+'GOTO')
+             alert(err)
+          // await this.logout();
         });
     },
     async logout() {

Một số tệp đã không được hiển thị bởi vì quá nhiều tập tin thay đổi trong này khác