Skip to content

Commit

Permalink
fix: 修复搜索入口定义时,资源分类无法正常显示的Bug
Browse files Browse the repository at this point in the history
fixed #39
  • Loading branch information
ronggang committed Feb 26, 2019
1 parent d5c8f4c commit 3f17eea
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion src/options/views/settings/SiteSearchEntry/Index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,8 @@ export default Vue.extend({
site: {} as Site,
selectedItem: {},
dialogRemoveConfirm: false,
searchEntry: [] as any
searchEntry: [] as any,
options: this.$store.state.options
};
},
methods: {
Expand Down Expand Up @@ -233,6 +234,12 @@ export default Vue.extend({
});
if (this.site) {
let systemSite = this.options.system.sites.find((item: Site) => {
return item.host == host;
});
if (systemSite) {
this.site.categories = systemSite.categories;
}
let searchEntry: any[] = [];
if (this.site.searchEntry && this.site.searchEntry.length > 0) {
Expand Down

0 comments on commit 3f17eea

Please sign in to comment.