mirror of
https://github.com/iczer/vue-antd-admin
synced 2025-04-05 19:41:37 +08:00
修复:解决头部通知组件计算主题时栈溢出异常;
This commit is contained in:
parent
50bcff1c61
commit
9baf57f4ee
@ -33,7 +33,7 @@
|
||||
</div>
|
||||
<span @click="fetchNotice" class="header-notice">
|
||||
<a-badge count="12">
|
||||
<a-icon :class="['header-notice-icon', theme]" type="bell" />
|
||||
<a-icon :class="['header-notice-icon', headerTheme]" type="bell" />
|
||||
</a-badge>
|
||||
</span>
|
||||
</a-dropdown>
|
||||
@ -50,7 +50,7 @@ export default {
|
||||
},
|
||||
computed: {
|
||||
...mapState('setting', ['layout', 'theme']),
|
||||
theme() {
|
||||
headerTheme() {
|
||||
return this.layout == 'side' ? 'light' : this.theme
|
||||
},
|
||||
},
|
||||
|
Loading…
x
Reference in New Issue
Block a user