fix: 保存位置显示默认下载目录
This commit is contained in:
@@ -244,8 +244,8 @@ async function start() {
|
|||||||
<div class="form-row">
|
<div class="form-row">
|
||||||
<label>保存到</label>
|
<label>保存到</label>
|
||||||
<div class="captcha-line">
|
<div class="captcha-line">
|
||||||
<div class="path-text" :class="{ placeholder: !outputDir }" :title="outputDir || '默认目录'">
|
<div class="path-text" :class="{ placeholder: !outputDir }" :title="outputDir || meta?.defaultOutputDir || '默认目录'">
|
||||||
{{ outputDir || "默认目录" }}
|
{{ outputDir || meta?.defaultOutputDir || "默认目录" }}
|
||||||
</div>
|
</div>
|
||||||
<n-button @click="pickDir">选择</n-button>
|
<n-button @click="pickDir">选择</n-button>
|
||||||
<n-button :disabled="!outputDir" @click="clearOutput">清除</n-button>
|
<n-button :disabled="!outputDir" @click="clearOutput">清除</n-button>
|
||||||
|
|||||||
@@ -11,6 +11,7 @@ export interface Meta {
|
|||||||
cities: { name: string; code: string }[];
|
cities: { name: string; code: string }[];
|
||||||
groups: Record<string, GroupOption[]>;
|
groups: Record<string, GroupOption[]>;
|
||||||
fixed: { grid: string[]; cell: Record<string, string[]> };
|
fixed: { grid: string[]; cell: Record<string, string[]> };
|
||||||
|
defaultOutputDir?: string;
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface DownloadJob {
|
export interface DownloadJob {
|
||||||
|
|||||||
Reference in New Issue
Block a user