diff --git a/assets/css/main.css b/assets/css/main.css index 5c7e7ba..da101dc 100644 --- a/assets/css/main.css +++ b/assets/css/main.css @@ -32,3 +32,7 @@ html.dark body { box-sizing: border-box; padding: 3px 5px; } + +.full-label .el-form-item__label { + width: 100%; +} \ No newline at end of file diff --git a/pages/index.vue b/pages/index.vue index 8d00c65..3d99ff5 100644 --- a/pages/index.vue +++ b/pages/index.vue @@ -12,9 +12,10 @@ + + + + {{release[0]}} + + + + ({ + visible: false, + loading: false, + data: "" + }); + const closePrevent = async () => { const appWindow = getCurrentWindow(); if (appWindow.label == "main") { @@ -573,7 +620,7 @@ }, async listenConfigStart() { const unListen = await listen("config", event => { - console.error("config", event.payload); + // console.error("config", event.payload); const ipv4 = config.ipv4; mainStore.$patch(event.payload as any); config.ipv4 = ipv4; @@ -621,6 +668,11 @@ return [false, null, null]; }; + const handleCoreManagement = async () => { + coreManagementData.visible = true; + await getReleaseList(); + }; + const handleUpdateCore = async () => { try { data.update = true; @@ -641,9 +693,11 @@ }; const getReleaseList = async () => { + coreManagementData.loading = true; const list = await invoke("fetch_easytier_list"); data.releaseList = list as never[]; - console.error(data.releaseList); + coreManagementData.loading = false; + console.log(data.releaseList); }; const handleAutoStart = async () => { diff --git a/src-tauri/easytier/tool/MicrosoftEdgeWebview2Setup.exe b/src-tauri/easytier/tool/MicrosoftEdgeWebview2Setup.exe new file mode 100644 index 0000000..ef79f8d Binary files /dev/null and b/src-tauri/easytier/tool/MicrosoftEdgeWebview2Setup.exe differ diff --git a/src-tauri/clear_data.bat b/src-tauri/easytier/tool/clear_local_data.bat similarity index 100% rename from src-tauri/clear_data.bat rename to src-tauri/easytier/tool/clear_local_data.bat diff --git a/src-tauri/easytier/帮助.txt b/src-tauri/easytier/帮助.txt new file mode 100644 index 0000000..3bf52d8 --- /dev/null +++ b/src-tauri/easytier/帮助.txt @@ -0,0 +1,16 @@ +[如果界面无法打开] + +1.如果已经启动easytier-game.exe可能会在后台运行,打开任务管理器关闭easytier-game.exe + +2.使用easytier-game安装目录下的 easytier/tool/MicrosoftEdgeWebview2Setup.exe 安装webview2 + +3. 再次启用easytier-game.exe + + +[如果想彻底删除easytierGame] + +1. 关闭easytierGame + +2. 运行easytier-game安装目录下的 easytier/tool/clear_local_data.bat (需要管理员权限) 输入y确认,清除本地存储数据 + +3. 删除easytierGame文件夹 \ No newline at end of file diff --git a/src-tauri/tauri.conf.json b/src-tauri/tauri.conf.json index f53d7ab..a3f33e4 100644 --- a/src-tauri/tauri.conf.json +++ b/src-tauri/tauri.conf.json @@ -42,11 +42,14 @@ "easytier/config/", "easytier/icons/", "easytier/config_template.json", + "easytier/tool/clear_local_data.bat", "easytier/tool/WinIPBroadcast.exe", + "easytier/tool/MicrosoftEdgeWebview2Setup.exe", "easytier/easytier-cli.exe", "easytier/easytier-core.exe", "easytier/Packet.dll", - "easytier/wintun.dll" + "easytier/wintun.dll", + "easytier/帮助.txt" ], "windows": { "webviewInstallMode": {