Browse Source

fix login

Michael Wang 6 years ago
parent
commit
ad7015684f
1 changed files with 4 additions and 4 deletions
  1. 4 4
      src/features/Login/Login.vue

+ 4 - 4
src/features/Login/Login.vue

@@ -119,8 +119,8 @@ export default {
         "https://ecs.qmth.com.cn:8878/electron-config/" + nameJson.name + ".js"
       )).data;
 
-      //如果配置中配置了  checkRomateControl:true
-      if (electronConfig.otherConfig.checkRomateControl) {
+      //如果配置中配置了  checkRemoteControl:true
+      if (electronConfig.otherConfig.checkRemoteControl) {
         nodeRequire("node-cmd").get("Project1.exe", function(data) {
           var applicationNames = fs.readFileSync(
             "remoteApplication.txt",
@@ -136,11 +136,11 @@ export default {
               duration: 30
             });
           } else {
-            this.disableLoginBtn = false;
+            that.disableLoginBtn = false;
           }
         });
       } else {
-        this.disableLoginBtn = false;
+        that.disableLoginBtn = false;
       }
     } else {
       this.disableLoginBtn = false;