Bläddra i källkod

feature:下机如果没有userId从实验室人员里获取

liuzhenlin 8 månader sedan
förälder
incheckning
c45841d45e
2 ändrade filer med 5 tillägg och 1 borttagningar
  1. 1 0
      .gitignore
  2. 4 1
      pages/home/index.vue

+ 1 - 0
.gitignore

@@ -1,3 +1,4 @@
 *.apk
 *.zip
 node_modules/
+.history/

+ 4 - 1
pages/home/index.vue

@@ -559,7 +559,10 @@
           success: async (res) => {
             if (res.confirm) {
               let [err, res] = await to(
-                instApi.geOff({ terminal: this.terminal, UserId: this.userId })
+                instApi.geOff({
+                  terminal: this.terminal,
+                  UserId: this.userId || "" + this.isOnlineInfo.userId,
+                })
               );
               if (err) return;
               if (res.code == 200) {