Pārlūkot izejas kodu

优化图片和音频功能

xiaoxin 4 gadi atpakaļ
vecāks
revīzija
0d2b50f7df

+ 3 - 7
src/components/broadcastContent/index.vue

@@ -461,7 +461,7 @@
               <audio
                 controls="controls"
                 v-if="form.extraFileShowUrl"
-                :src="form.extraFileShowUrl"
+                :src="form.extraFileShowUrl+form.extraFile"
               ></audio>
             </div>
             <div
@@ -607,7 +607,7 @@
               <audio
                 controls="controls"
                 v-if="form.extraFileShowUrl"
-                :src="form.extraFileShowUrl"
+                :src="form.extraFileShowUrl+form.extraFile"
               ></audio>
             </div>
             <div
@@ -772,8 +772,7 @@ export default {
       totalCount: null, // 总条数
       // 富文本自定义
       editorOption: {
-        placeholder:
-          "请输入内容,如需插入音频,请不要在上传音频时做其他操作,并在提示音频插入成功后再提交",
+        placeholder: "请输入内容",
         theme: "snow",
         modules: {
           toolbar: {
@@ -1043,9 +1042,6 @@ export default {
         spinner: "el-icon-loading",
         background: "rgba(0, 0, 0, 0.7)",
       });
-      // setTimeout(() => {
-      //   loading.close();
-      // }, 2000);
       // 上传前限制文件大小
       const isMp3 = file.raw.type === "audio/mpeg";
 

+ 4 - 0
src/components/smokeWarn/index.vue

@@ -256,6 +256,10 @@ export default {
       });
       // console.log(res);
       if (res.status == 200) {
+        res.data.data.list.forEach((Element) => {
+          Element.images = "6.200.0.4:8878" + Element.images;
+          return Element;
+        });
         this.tableData = res.data.data.list;
         this.totalCount = res.data.data.totalCount;
       } else {