he wei
2025-03-22 b887d3a6d296e4dc9be5d6e3e072b89b406f1e9c
U 定制版打包中文标准版 去掉升级功能
3个文件已修改
34 ■■■■ 已修改文件
src/assets/js/config.module.js 4 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/background.js 14 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/components/menuList.vue 16 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/assets/js/config.module.js
@@ -5,6 +5,6 @@
  // isStandard: false,
  
  // 打包语言 CN, US
  // lang: 'CN',
  lang: 'US',
  lang: 'CN',
  // lang: 'US',
}
src/background.js
@@ -17,7 +17,7 @@
import path from "path";
import child_process from "child_process";
import log from "electron-log";
import update from "./update";
// import update from "./update";
import config from "./assets/js/config";
const { lang } = config;
@@ -150,7 +150,7 @@
    function () {
      log.info("窗口初始化 接口不通");
      log.info("正在终止java进程,然后重启服务");
      update(win.webContents, true);
      // update(win.webContents, true);
      let stop = child_process.spawn("cmd.exe", ["/c", "stop.bat"]);
      stop.on("exit", function (code) {
        if (code > 0) {
@@ -257,11 +257,11 @@
    log.info("ready event");
    // TODO
    if ('US' != lang) {
      setTimeout(() => {
        update(win.webContents, true);
      }, 1000 * 30);
    }
    // if ('US' != lang) {
    //   setTimeout(() => {
    //     update(win.webContents, true);
    //   }, 1000 * 30);
    // }
  });
  win.webContents.session.on("will-download", (e, item) => {
src/components/menuList.vue
@@ -541,10 +541,10 @@
        title: this.$t("Help"),
        visible: false,
        children: [
          {
            title: this.$t("Update"),
            method: "checkForUpdate",
          },
          // {
          //   title: this.$t("Update"),
          //   method: "checkForUpdate",
          // },
        ],
      },
    ];
@@ -563,10 +563,10 @@
          title: this.$t("OperatingVideo"),
          method: "video",
        },
        {
          title: this.$t("Update"),
          method: "checkForUpdate",
        },
        // {
        //   title: this.$t("Update"),
        //   method: "checkForUpdate",
        // },
      ];
      const menu1 = [
        {