修复:解决头部通知组件计算主题时栈溢出异常;

master
iczer 5 years ago
parent 50bcff1c61
commit 9baf57f4ee
  1. 4
      src/layouts/HeaderNotice.vue

@ -33,7 +33,7 @@
</div> </div>
<span @click="fetchNotice" class="header-notice"> <span @click="fetchNotice" class="header-notice">
<a-badge count="12"> <a-badge count="12">
<a-icon :class="['header-notice-icon', theme]" type="bell" /> <a-icon :class="['header-notice-icon', headerTheme]" type="bell" />
</a-badge> </a-badge>
</span> </span>
</a-dropdown> </a-dropdown>
@ -50,7 +50,7 @@ export default {
}, },
computed: { computed: {
...mapState('setting', ['layout', 'theme']), ...mapState('setting', ['layout', 'theme']),
theme() { headerTheme() {
return this.layout == 'side' ? 'light' : this.theme return this.layout == 'side' ? 'light' : this.theme
}, },
}, },

Loading…
Cancel
Save