dusenyao 3 rokov pred
rodič
commit
18eb55f6d2

Rozdielové dáta súboru neboli zobrazené, pretože súbor je príliš veľký
+ 0 - 0
src/icons/svg/close.svg


+ 6 - 7
src/views/live/teacher/index.vue

@@ -88,7 +88,7 @@
         <div class="button-group">
           <div class="button-group-left">
             <span class="icon-button" @click="publishShareStream">
-              <svg-icon icon-class="share" />
+              <svg-icon :icon-class="remoteStreamType === 1 ? 'close' : 'share'" />
             </span>
             <span class="icon-button" @click="showDrawSetting">
               <svg-icon icon-class="draw" />
@@ -481,12 +481,11 @@ export default {
 
     // 推送桌面共享
     publishShareStream() {
-      common.publishShareStream();
-    },
-
-    // 关闭桌面共享
-    unPubShareStream() {
-      common.unPubShareStream();
+      if (this.remoteStreamType === 1) {
+        common.unPubShareStream();
+      } else {
+        common.publishShareStream();
+      }
     },
 
     reconnection() {

Niektoré súbory nie sú zobrazené, pretože je v týchto rozdielových dátach zmenené mnoho súborov