Michael Wang 6 жил өмнө
parent
commit
84e990f1ee

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

@@ -113,7 +113,7 @@ export default {
     if (typeof nodeRequire != "undefined") {
       var that = this;
       var fs = nodeRequire("fs");
-      var config = fs.readFileSync(process.cwd() + "/" + "config.js", "utf-8");
+      var config = fs.readFileSync("config.js", "utf-8");
       var nameJson = JSON.parse(config);
       const electronConfig = (await this.$http.get(
         "https://ecs.qmth.com.cn:8878/electron-config/" + nameJson.name + ".js"