ZhaoJing 1 éve%!(EXTRA string=óta)
szülő
commit
00065d5d7f
2 módosított fájl, 2 hozzáadás és 2 törlés
  1. 1 1
      src/pages/zbkc/detailIsLive.vue
  2. 1 1
      src/pages/zbkc/homework.vue

+ 1 - 1
src/pages/zbkc/detailIsLive.vue

@@ -125,7 +125,7 @@ function getChapterDetail() {
         if (res.code === "1") {
             chapter_info = res.data.one_info;
             course_title = res.data.one_info.tzk_ksmc;
-            if (user.value.user_id ==='100') {
+            if (user.value.user_id !== chapter_info.tzk_zjr_user_id) {
                 let width = liveBox.value.parentElement.offsetWidth;
                 liveBox.value.style.width = width + 'px';
             }

+ 1 - 1
src/pages/zbkc/homework.vue

@@ -139,7 +139,7 @@ function download(item) {
 <template>
     <div class="w-300px h-400px flex flex-col shadow chat">
         <!--  v-if="user.user_id === props?.zjr" -->
-        <div v-if="user.user_id ==='1'" class="h-100 overflow-hidden overflow-y-auto flex-auto home_scroll" ref="chatBox">
+        <div v-if="user.user_id === props?.zjr" class="h-100 overflow-hidden overflow-y-auto flex-auto home_scroll" ref="chatBox">
             <div class="right-nav ml-20px">
                 <span>相关章节</span>
                 <i></i>