提交 d1dda833 authored 作者: 王鹏飞's avatar 王鹏飞

消息改为调用消息中心

上级 8a3e7fcf
......@@ -6,10 +6,10 @@
</div>
<div class="nav-right">
<div class="nav-message"></div>
<div class="notify" @click="goNotify()">
<!-- <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> -->
<!-- <language-switch /> -->
</div>
</div>
......@@ -17,8 +17,8 @@
<script>
import LanguageSwitch from '@/components/languageSwitch/index.vue'
import cAction from '../../action'
// import Message from '@ezijing/web-message-sdk'
// import cAction from '../../action'
import Message from '@ezijing/web-message-sdk'
export default {
components: { LanguageSwitch },
data() {
......@@ -27,15 +27,15 @@ export default {
}
},
mounted() {
cAction.Other.getNavMsg()
.then(data => {
this.$store.commit('myMsg', data.num)
})
.catch(e => {
this.$message.error(e.message)
})
// cAction.Other.getNavMsg()
// .then(data => {
// this.$store.commit('myMsg', data.num)
// })
// .catch(e => {
// this.$message.error(e.message)
// })
// 新版通知
// Message({ container: '.nav-message', source: 'SOFIA_WEB', baseURL: webConf.others.messageBaseURL })
Message({ container: '.nav-message', source: 'SOFIA_WEB', baseURL: webConf.others.messageBaseURL })
},
methods: {
goNotify() {
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论