优化bug
This commit is contained in:
+3
-2
@@ -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.$;
|
||||
|
||||
Reference in New Issue
Block a user