jwyu 1 year ago
parent
commit
f1edc5369e
1 changed files with 5 additions and 1 deletions
  1. 5 1
      src/views/ppt/Preview.vue

+ 5 - 1
src/views/ppt/Preview.vue

@@ -72,6 +72,10 @@ function handleShowAction(){
     }
 }
 
+function handleCloseWindow(){
+    window.close()
+}
+
 </script>
 
 <template>
@@ -109,7 +113,7 @@ function handleShowAction(){
         </div>
         <div 
             :class="[showAction?'back-btn back-btn_show':'back-btn']"
-            @click="$router.back()"
+            @click="handleCloseWindow"
         >退出播放</div>
     </div>
 </template>