From 5c649455171dfd01b96e26cfc9048265f37ce470 Mon Sep 17 00:00:00 2001 From: gfdgd_xi <3025613752@qq.com> Date: Sat, 27 Jun 2026 18:52:54 +0800 Subject: [PATCH] =?UTF-8?q?=E7=A7=BB=E9=99=A4=E6=8A=95=E7=A8=BF=E5=99=A8?= =?UTF-8?q?=E6=BA=90=E9=80=89=E6=8B=A9=E5=AF=B9=E8=AF=9D=E6=A1=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: gfdgd_xi <3025613752@qq.com> --- src/components/SubmitterWindow.vue | 92 +----------------------------- 1 file changed, 2 insertions(+), 90 deletions(-) diff --git a/src/components/SubmitterWindow.vue b/src/components/SubmitterWindow.vue index 288fc212..94bebcbd 100644 --- a/src/components/SubmitterWindow.vue +++ b/src/components/SubmitterWindow.vue @@ -520,77 +520,6 @@ - - -
-
-
-
-

- 选择数据源 -

- -
- -

- 请选择搜索历史信息的数据源: -

- -
-
-
- 镜像源 -
-
- mirrors.sdu.edu.cn - 建议在中国内地使用以获得更好的网络体验 -
-
-
-
- 主站 -
-
- spk-json.spark-app.store - 全球可用 -
-
-
- -
- - -
-
-
-
@@ -642,7 +571,6 @@ const showArchDialog = ref(false); const availableArchs = ref([]); const currentDebArch = ref(""); const iconPreview = ref(""); -const showMirrorConfirmDialog = ref(false); const isPackaging = ref(false); const packageSuccess = ref(false); @@ -928,22 +856,7 @@ const selectDebFile = async () => { } }; -const useMirror = ref(false); -let pendingSearchHistory = false; - -const selectMirrorSource = () => { - showMirrorConfirmDialog.value = true; -}; - -const confirmMirrorSource = async (useMirrorSource: boolean) => { - useMirror.value = useMirrorSource; - showMirrorConfirmDialog.value = false; - - if (pendingSearchHistory && formData.pkgname) { - pendingSearchHistory = false; - await searchHistoryApp(); - } -}; +const useMirror = ref(true); const searchHistoryApp = async () => { console.log( @@ -1127,8 +1040,7 @@ const parseDebFileAndSearchHistory = async (debPath: string) => { ); if (formData.pkgname) { - pendingSearchHistory = true; - selectMirrorSource(); + await searchHistoryApp(); } } else { console.error("[Submitter] Failed to parse deb file");