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