update at 2025-10-21 21:47:02

This commit is contained in:
douboer
2025-10-21 21:47:02 +08:00
parent 8d40fbb01f
commit b823d90b55
29 changed files with 2159 additions and 1626 deletions

View File

@@ -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;');