|
@@ -68,6 +68,7 @@ import { mapGetters } from 'vuex'
|
|
|
import { Breadcrumb, Hamburger, ErrorLog, Screenfull, SizeSelect, Search } from '@/components'
|
|
|
import { getUnReadCounter } from '@/api/system/msgApi'
|
|
|
import { getToken } from '@/utils/auth'
|
|
|
+import { getBigScreenConfig } from '@/api/bigScreenConfig'
|
|
|
export default {
|
|
|
name: 'NaveBarComponent',
|
|
|
components: {
|
|
@@ -154,10 +155,16 @@ export default {
|
|
|
this.$router.push(`/login?redirect=${this.$route.fullPath}`)
|
|
|
},
|
|
|
sideTabChange(index, item) {
|
|
|
- const token = getToken()
|
|
|
if (item.href) {
|
|
|
- const bigscreen = process.env.NODE_ENV === 'development' ? 'http://192.168.3.16:8080/#/' : 'http://113.141.93.143:1689/#/'
|
|
|
- window.open(`${bigscreen}?token=${token}`)
|
|
|
+ const token = getToken()
|
|
|
+ getBigScreenConfig().then((resq) => {
|
|
|
+ const bigscreen = resq.data.bigscreenAddr
|
|
|
+ if (this.isNotNull(bigscreen)) {
|
|
|
+ window.open(`${bigscreen}?token=${token}`, '_blank')
|
|
|
+ } else {
|
|
|
+ this.$message.error('请配置大屏')
|
|
|
+ }
|
|
|
+ })
|
|
|
return
|
|
|
}
|
|
|
this.sideMenuTabIndex = index
|