From 5451f5bc70734c1a74c41b998d76aba84407f103 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=88=98=E5=98=89=E4=BC=9F?= <8473136@qq.com> Date: Thu, 13 Feb 2025 14:49:44 +0800 Subject: [PATCH] =?UTF-8?q?:bug:=20=E4=BF=AE=E5=A4=8Dwindow=E4=B8=8B?= =?UTF-8?q?=E8=B7=AF=E5=BE=84=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/proxy/index.vue | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/src/views/proxy/index.vue b/src/views/proxy/index.vue index 989d0e1..bdf0b52 100644 --- a/src/views/proxy/index.vue +++ b/src/views/proxy/index.vue @@ -11,10 +11,10 @@ import Breadcrumb from "@/layout/compoenets/Breadcrumb.vue"; import { ElMessage, FormInstance, FormRules } from "element-plus"; import { ipcRenderer } from "electron"; import { clone } from "@/utils/clone"; -import { formatDate, useClipboard, useDebounceFn } from "@vueuse/core"; +import { useClipboard, useDebounceFn } from "@vueuse/core"; import IconifyIconOffline from "@/components/IconifyIcon/src/iconifyIconOffline"; import commonIps from "./commonIp.json"; -import router from "@/router"; +import path from "path"; defineComponent({ name: "Proxy" @@ -565,10 +565,9 @@ const handleRandomProxyName = () => { `df_${editForm.value.type}_${result}`.toLocaleLowerCase(); }; -import path from "path"; -function normalizePath(filePath: string) { +const normalizePath = (filePath: string) => { return path.normalize(filePath).replace(/\\/g, "/"); -} +}; const handleSelectFile = (type: number, ext: string[]) => { ipcRenderer.invoke("file.selectFile", ext).then(r => {