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");