提交 3fc4cc46 authored 作者: lihuihui's avatar lihuihui

显示nav上面的通知

上级 659cd4be
......@@ -5,15 +5,15 @@
<div class="text-title" @click="setStatus">{{ $t('components.learnSysLayout.navigation.title') }}</div>
</div>
<!-- <s-language></s-language> -->
<!-- <div class="notify" @click="goNotify()">{{ $t('components.learnSysLayout.navigation.tip') }}
<div class="notify" @click="goNotify()">{{ $t('components.learnSysLayout.navigation.tip') }}
<div class="num" v-if="this.$store.getters.myMsg !=0">{{ this.$store.getters.myMsg }}</div>
</div> -->
</div>
</div>
</template>
<script>
// import sLanguage from '@/components/languageSwitch/index.vue'
// import cAction from '../../action'
import cAction from '../../action'
export default {
components: {},
......@@ -34,9 +34,9 @@ export default {
// catchCallback: () => {},
// finallyCallback: () => {}
// })
// cAction.Other.getNavMsg().then(data => {
// this.$store.commit('myMsg', data.num)
// }).catch(e => { this.$message.error(e.message) }).finally(() => { })
cAction.Other.getNavMsg().then(data => {
this.$store.commit('myMsg', data.num)
}).catch(e => { this.$message.error(e.message) }).finally(() => { })
},
methods: {
goNotify () {
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论