update at 2025-10-21 21:47:02
This commit is contained in:
@@ -425,12 +425,12 @@ export class Note2AnySettingTab extends PluginSettingTab {
|
||||
private renderImageTab(panel: HTMLElement): void {
|
||||
new Setting(panel)
|
||||
.setName('切图保存路径')
|
||||
.setDesc('切图文件的保存目录,默认:/Users/gavin/note2any/images/xhs')
|
||||
.setDesc('切图文件的保存目录(vault 内相对路径),默认:xhs-images')
|
||||
.addText(text => {
|
||||
text.setPlaceholder('例如 /Users/xxx/images/xhs')
|
||||
.setValue(this.settings.sliceImageSavePath || '')
|
||||
text.setPlaceholder('例如 xhs-images 或 images/xhs')
|
||||
.setValue(this.settings.sliceImageSavePath || 'xhs-images')
|
||||
.onChange(async (value) => {
|
||||
this.settings.sliceImageSavePath = value.trim();
|
||||
this.settings.sliceImageSavePath = value.trim() || 'xhs-images';
|
||||
await this.plugin.saveSettings();
|
||||
});
|
||||
text.inputEl.setAttr('style', 'width: 360px;');
|
||||
|
||||
Reference in New Issue
Block a user