4
0
mirror of https://github.com/iczer/vue-antd-admin.git synced 2025-04-30 22:52:07 +08:00

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

This commit is contained in:
iczer 2020-06-20 15:37:09 +08:00
parent 50bcff1c61
commit 9baf57f4ee

View File

@ -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
}, },
}, },