11wqe1 před 3 měsíci
rodič
revize
d97ca5acaf
1 změnil soubory, kde provedl 15 přidání a 11 odebrání
  1. 15 11
      src/mixins/mixin.js

+ 15 - 11
src/mixins/mixin.js

@@ -41,17 +41,21 @@ export const myMixin = {
     },
     async addOp3(userTime, loadTime, object, status) {
       
-      try {
-        if(!this.userinfo || !this.userinfo.accountNumber){
-            let res = await this.ajax.get(this.$store.state.api + "selectUser", {
-            userid: this.$route.query.userid
-            });
-            this.userinfo = res.data[0][0]
-        }
-      } catch (e) {
-        console.log(e);
-        return this.addOp3(userTime, loadTime, object, status);
-      }
+      // try {
+      //   if(!this.userinfo || !this.userinfo.accountNumber){
+          
+      //       let res = await this.$ajax.get(this.$store.state.api + "selectUser", {
+      //         userid: this.$route.query.userid
+      //       });
+
+      //       this.userinfo = res.data[0][0]
+      //   }
+      // } catch (e) {
+      //   console.log(e);
+      //   return this.addOp3(userTime, loadTime, object, status);
+      // }
+
+
       let _time = new Date()
         .toLocaleString("zh-CN", { hour12: false, timeZone: "Asia/Shanghai" })
         .replace(/\//g, "-");