瀏覽代碼

this.$confirm 提示框适配移动端

reghao 1 年之前
父節點
當前提交
76f6ed268c
共有 1 個文件被更改,包括 6 次插入1 次删除
  1. 6 1
      src/views/home/VideoPage.vue

+ 6 - 1
src/views/home/VideoPage.vue

@@ -564,7 +564,8 @@ export default {
       this.$confirm('确定要删除 ' + video.title + '?', '提示', {
         confirmButtonText: '确定',
         cancelButtonText: '取消',
-        type: 'warning'
+        type: 'warning',
+        customClass: 'msgbox'
       }).then(() => {
         const videoId = video.videoId
         const errorReportForm = {
@@ -712,6 +713,10 @@ export default {
     padding-left: 0.5%;
     padding-right: 0.5%;
   }
+
+  .msgbox{
+    width: 320px !important;
+  }
 }
 
 .movie-list {