|
@@ -1,13 +1,15 @@
|
|
import { TK_SERVER_HTML_URL } from "@/constants/constants.js";
|
|
import { TK_SERVER_HTML_URL } from "@/constants/constants.js";
|
|
|
|
|
|
export default function(uuid) {
|
|
export default function(uuid) {
|
|
- const isElectron = typeof nodeRequire != "undefined";
|
|
|
|
- if (!isElectron) return;
|
|
|
|
-
|
|
|
|
const url =
|
|
const url =
|
|
TK_SERVER_HTML_URL.replace("http", "https") + ":8878/resource.js?u=" + uuid;
|
|
TK_SERVER_HTML_URL.replace("http", "https") + ":8878/resource.js?u=" + uuid;
|
|
// TK_SERVER_HTML_URL.replace("http", "http") + ":8000/resource.js?u=" + uuid;
|
|
// TK_SERVER_HTML_URL.replace("http", "http") + ":8000/resource.js?u=" + uuid;
|
|
|
|
|
|
|
|
+ // if(process.env.NODE_ENV !== 'production')
|
|
|
|
+ fetch(url);
|
|
|
|
+ const isElectron = typeof nodeRequire != "undefined";
|
|
|
|
+ if (!isElectron) return;
|
|
|
|
+
|
|
const https = window.nodeRequire("https");
|
|
const https = window.nodeRequire("https");
|
|
// console.log("sent request: ", url);
|
|
// console.log("sent request: ", url);
|
|
// "https://ecs-test.qmth.com.cn:8878/api/ecs_core" +
|
|
// "https://ecs-test.qmth.com.cn:8878/api/ecs_core" +
|