11wqe1 1 week ago
parent
commit
0270c8300b
1 changed files with 3 additions and 3 deletions
  1. 3 3
      src/mixins/mixin.js

+ 3 - 3
src/mixins/mixin.js

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