From 684d74d2285092559b5d25fac451e4f1abb52a5b Mon Sep 17 00:00:00 2001
From: shuishen <1109946754@qq.com>
Date: Thu, 20 Jan 2022 17:28:44 +0800
Subject: [PATCH] 部分内容完善
---
src/components/arcNavBar/index.vue | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/components/arcNavBar/index.vue b/src/components/arcNavBar/index.vue
index ab1570c..7d5d6f1 100644
--- a/src/components/arcNavBar/index.vue
+++ b/src/components/arcNavBar/index.vue
@@ -180,8 +180,6 @@
this.$store.commit('CLEAR_ALL', null)
var imgArr = result.tpurl.split(',')
- var tabOne = res.data.data[0].jx.split(',')
- var tabTwo = res.data.data[0].sh.split(',')
this.$store.commit('SET_POPUPBGURL', imgArr[0])
this.$store.commit('SET_POPUPQRURL', result.codeurl)
@@ -195,13 +193,15 @@
if (result.videourl && result.videourl != '') {
this.$store.commit('SET_MONITORURL', result.videourl)
}
- if (res.data.data[0].jx != '') {
+ if (res.data.data[0].jx != undefined && res.data.data[0].jx != '') {
+ var tabOne = res.data.data[0].jx.split(',')
this.$store.commit('SET_TEACHLIST', tabOne)
} else {
this.$store.commit('SET_TEACHLIST', [])
}
- if (res.data.data[0].sh != '') {
+ if (res.data.data[0].sh != undefined && res.data.data[0].sh != '') {
+ var tabTwo = res.data.data[0].sh.split(',')
this.$store.commit('SET_LIVELIST', tabTwo)
} else {
this.$store.commit('SET_LIVELIST', [])
--
Gitblit v1.9.3