Skip to content

Commit

Permalink
Merge pull request #54 from xr1627119275/fixbug_下载路径
Browse files Browse the repository at this point in the history
修复在其他系统下文件保存问题
  • Loading branch information
LokerL authored Mar 6, 2023
2 parents 5411762 + 0733c6f commit 8e3496a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/global/initLocalStore.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
const Store = require("electron-store");
const store = new Store();
const homeDir = require("os").homedir();
const desktopDir = `${homeDir}\\Desktop\\`;
const desktopDir = require("path").resolve(homeDir, "Desktop");
export default function initStore() {
if (!store.has("FormConfig.默认")) {
store.set("FormConfig.默认", {
Expand Down

0 comments on commit 8e3496a

Please sign in to comment.