Skip to content

Commit 7959fd3

Browse files
committed
修复bug,去除打开额外备份
1 parent f336850 commit 7959fd3

File tree

2 files changed

+1
-5
lines changed

2 files changed

+1
-5
lines changed

src/background/ipcHandler.ts

+1
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ import path from "path"
1717
export function init_ipc() {
1818
ipcMain.on("open_url", async (Event, arg) => {
1919
// 打开URL
20+
console.log("打开URL",arg)
2021
shell.openExternal(arg);
2122
Event.reply("reply_open_url", true);
2223
});

src/views/GameManage.vue

-5
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,6 @@ export default defineComponent({
7878
{ text: "创建新存档", method: "create_new_save" },
7979
{ text: "用最新存档覆盖", method: "load_latest_save" },
8080
{ text: "启动游戏", method: "launch_game" },
81-
{text:"打开额外备份",method:""}
8281
],
8382
search: "",
8483
table_data: [
@@ -197,10 +196,6 @@ export default defineComponent({
197196
ipcRenderer.removeAllListeners("reply_apply_backup_with_extra_backup");
198197
},
199198
methods: {
200-
open_extra_backup(){
201-
let url = path.join(store.state.config.backup_path,this.game.name,"extra_backup")
202-
ipcRenderer.send("open_url",url)
203-
},
204199
load_game(saves) {
205200
// 在路由切换后,把当前游戏的信息读取到data的table_data中
206201
this.game.name = saves.name;

0 commit comments

Comments
 (0)