Skip to content

Commit

Permalink
修复辞典搜索bug
Browse files Browse the repository at this point in the history
  • Loading branch information
张成 committed Aug 12, 2022
1 parent 2560145 commit be82420
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/components/dict/DictCollapse.vue
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,11 @@ export default {
let flag = 0;
for (let index in this.textDict) {
if (this.textDict[index].name === val) {
this.activeNames = parseInt(index) + 1;
if(typeof (this.activeNames)==="object"){
this.activeNames=[parseInt(this.textDict[index].id)];
}else{
this.activeNames = parseInt(this.textDict[index].id);
}
flag = 1;
break
}
Expand Down

0 comments on commit be82420

Please sign in to comment.