فهرست منبع

fix disable login logic

Michael Wang 5 سال پیش
والد
کامیت
46eb7abca6
1فایلهای تغییر یافته به همراه16 افزوده شده و 1 حذف شده
  1. 16 1
      src/features/Login/Login.vue

+ 16 - 1
src/features/Login/Login.vue

@@ -389,11 +389,16 @@ export default {
             ? "https://ecs-static.qmth.com.cn"
             : "https://ecs-test-static.qmth.com.cn";
 
+        let myHeaders = new Headers();
+        myHeaders.append("Cache-Control", "no-cache");
         const res = await fetch(
           fileSever +
             "/org_properties/byOrgDomain/" +
             this.domainInUrl +
-            "/studentClientConfig.json"
+            "/studentClientConfig.json",
+          {
+            headers: myHeaders,
+          }
         );
         if (res.ok) {
           const json = await res.json();
@@ -454,6 +459,8 @@ export default {
         )
       ) {
         await nativeExe("Project1.exe", checkRemoteAppTxt.bind(this));
+      } else {
+        this.disableLoginBtnBecauseRemoteApp = false;
       }
     },
     async checkVCam() {
@@ -510,6 +517,8 @@ export default {
         )
       ) {
         await nativeExe("multiCamera.exe", checkVCamTxt.bind(this));
+      } else {
+        this.disableLoginBtnBecauseVCam = false;
       }
     },
     closeApp() {
@@ -587,6 +596,12 @@ export default {
       }
     },
     disableLoginBtn() {
+      // console.log(
+      //   this.isElectron,
+      //   this.disableLoginBtnBecauseRemoteApp,
+      //   this.disableLoginBtnBecauseVCam,
+      //   this.disableLoginBtnBecauseNoRemoteAppChecker
+      // );
       return (
         this.isElectron &&
         (this.disableLoginBtnBecauseRemoteApp ||