修复:修改页签头标题不生效的bug;

fix: the problem that modify page title not effective;
master
chenghongxing 4 years ago
parent 37f66c8786
commit b0fc3a943e
  1. 3
      src/layouts/tabs/TabsHead.vue

@ -95,7 +95,8 @@
this.$emit('contextmenu', pageKey, e) this.$emit('contextmenu', pageKey, e)
}, },
pageName(page) { pageName(page) {
const custom = this.customTitles.find(item => item.path === page.fullPath) const pagePath = page.fullPath.split('?')[0]
const custom = this.customTitles.find(item => item.path === pagePath)
return (custom && custom.title) || page.title || this.$t(getI18nKey(page.keyPath)) return (custom && custom.title) || page.title || this.$t(getI18nKey(page.keyPath))
} }
} }

Loading…
Cancel
Save