Skip to content

Commit

Permalink
fix(market): collapse tree with one click, fix koishijs#108
Browse files Browse the repository at this point in the history
  • Loading branch information
shigma committed Mar 21, 2023
1 parent 5a6f7bd commit fea0a6a
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion packages/market/client/settings/tree.vue
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ watch(keyword, (val) => {
onActivated(async () => {
const container = root.value.$el
await nextTick()
const element = container.querySelector('.k-tab-item.active') as HTMLElement
const element = container.querySelector('.el-tree-node.is-active') as HTMLElement
if (!element) return
root.value['setScrollTop'](element.offsetTop - (container.offsetHeight - element.offsetHeight) / 2)
})
Expand Down
2 changes: 1 addition & 1 deletion packages/market/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@koishijs/plugin-market",
"description": "Manage your bots and plugins with console",
"version": "1.12.3",
"version": "1.12.4",
"main": "lib/node/index.js",
"typings": "lib/index.d.ts",
"exports": {
Expand Down
2 changes: 1 addition & 1 deletion packages/market/src/shared/writer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ export class ConfigWriter extends DataService<Context.Config> {
}
}
insertKey(target, config, Object.keys(target))
await this.loader.writeConfig()
await this.loader.writeConfig(true)
}

async reload(path: string, config: any, newKey?: string) {
Expand Down

0 comments on commit fea0a6a

Please sign in to comment.