소스 검색

login isElectron

Michael Wang 4 년 전
부모
커밋
3824433ed1
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      src/features/Login/Login.vue

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

@@ -982,7 +982,7 @@ export default {
       if (this.QECSConfig.LOGIN_SUPPORT.includes("NATIVE")) {
         // 检测是否是学生端。 检测是否有node。检测是否能node调用。
         const hasShell = UA.getBrowser().name === "electron-exam-shell";
-        const hasNode = !isElectron();
+        const hasNode = isElectron();
         let hasFs = false;
         let hasReadFileSync = false;
         if (hasShell && hasNode) {