Преглед изворни кода

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

liuzhenlin пре 8 месеци
родитељ
комит
c45841d45e
2 измењених фајлова са 5 додато и 1 уклоњено
  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) {