优化bug

This commit is contained in:
24kycj
2025-11-15 13:11:46 +08:00
parent 533739104e
commit 1d42f6b74b
8 changed files with 626 additions and 1075 deletions
+3 -2
View File
@@ -52,7 +52,9 @@
let fs = require('fs')
const remote = require('@electron/remote')
var path = require('path');
const exePath = !remote.app.isPackaged ? process.cwd() : path.dirname(process.execPath)
const { ipcRenderer } = require('electron')
// 使用用户数据目录,避免写入需要管理员权限
const exePath = remote.app.getPath('userData')
function get_filename(path) {
let arr = path.split("/");
if (arr.length < 2) {
@@ -71,7 +73,6 @@
}
return t[str][s_lan];
}
const { ipcRenderer } = require('electron')
const { dialog } = require('@electron/remote')
layui.use(['layer', 'form', 'jquery'], function () {
var $ = layui.$;