Skip to content

Commit

Permalink
fix region modification issue
Browse files Browse the repository at this point in the history
  • Loading branch information
addozhang committed Jan 22, 2024
1 parent 05d8b6f commit 41f3d0e
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
2 changes: 1 addition & 1 deletion manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,5 @@
"authorUrl": "https://atbug.com",
"isDesktopOnly": true,
"minAppVersion": "0.11.0",
"version": "0.3.4"
"version": "0.3.5"
}
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "obsidian-image-upload-toolkit",
"version": "0.3.4",
"version": "0.3.5",
"description": "",
"author": "addozhang",
"main": "main.js",
Expand Down
6 changes: 5 additions & 1 deletion src/ui/publishSettingTab.ts
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,11 @@ export default class PublishSettingTab extends PluginSettingTab {
.addDropdown(dropdown =>
dropdown
.addOptions(RegionList)
.onChange(value => this.plugin.settings.ossSetting.region = value)
.setValue(this.plugin.settings.ossSetting.region)
.onChange(value => {
this.plugin.settings.ossSetting.region = value;
this.plugin.settings.ossSetting.endpoint = `https://${value}.aliyuncs.com/`;
})
)
new Setting(parentEL)
.setName("Access Key Id")
Expand Down

0 comments on commit 41f3d0e

Please sign in to comment.