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

消息改为调用消息中心

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