修改:修复顶部通知组件 light 主题下颜色不更换问题;

master
iczer 4 years ago
parent a7975eea3a
commit a5f486a03d
  1. 11
      src/layouts/HeaderNotice.vue

@ -33,14 +33,13 @@
</div>
<span @click="fetchNotice" class="header-notice">
<a-badge count="12">
<a-icon :class="['header-notice-icon', headerTheme]" type="bell" />
<a-icon :class="['header-notice-icon']" type="bell" />
</a-badge>
</span>
</a-dropdown>
</template>
<script>
import {mapState} from 'vuex'
export default {
name: 'HeaderNotice',
data () {
@ -48,9 +47,7 @@ export default {
loading: false
}
},
inject: 'headerTheme',
computed: {
...mapState('setting', ['layout', 'theme'])
},
methods: {
fetchNotice () {
@ -77,12 +74,6 @@ export default {
.header-notice-icon{
font-size: 16px;
padding: 4px;
&.dark{
color: #fff;
}
&.light{
color: rgba(0,0,0,.65);
}
}
}
.ant-dropdown-menu-container{

Loading…
Cancel
Save