fix: 保存位置显示默认下载目录

This commit is contained in:
2026-10-25 07:37:09 +08:00
parent 71f7e68079
commit 81a5fbe46e
2 changed files with 3 additions and 2 deletions
@@ -244,8 +244,8 @@ async function start() {
<div class="form-row">
<label>保存到</label>
<div class="captcha-line">
<div class="path-text" :class="{ placeholder: !outputDir }" :title="outputDir || '默认目录'">
{{ outputDir || "默认目录" }}
<div class="path-text" :class="{ placeholder: !outputDir }" :title="outputDir || meta?.defaultOutputDir || '默认目录'">
{{ outputDir || meta?.defaultOutputDir || "默认目录" }}
</div>
<n-button @click="pickDir">选择</n-button>
<n-button :disabled="!outputDir" @click="clearOutput">清除</n-button>
+1
View File
@@ -11,6 +11,7 @@ export interface Meta {
cities: { name: string; code: string }[];
groups: Record<string, GroupOption[]>;
fixed: { grid: string[]; cell: Record<string, string[]> };
defaultOutputDir?: string;
}
export interface DownloadJob {