Pārlūkot izejas kodu

编辑bug修复

lsx 2 gadi atpakaļ
vecāks
revīzija
b472a6e7cf
1 mainītis faili ar 2 papildinājumiem un 2 dzēšanām
  1. 2 2
      src/views/business/ticket/create.vue

+ 2 - 2
src/views/business/ticket/create.vue

@@ -379,6 +379,7 @@ export default {
               item.prizeList.forEach((ele) => {
                 (ele.picUrl = publicFileGetUrl + ele.picUrl.split(',')[0]),
                 (ele.prizeType = JSON.parse(ele.prizeType).value);
+                ele.couponDetail = ele.couponDetail ? encodeURI(ele.couponDetail) : ''
               });
           });
           this.$nextTick(() => {
@@ -526,8 +527,7 @@ export default {
             background: "rgba(0, 0, 0, 0.4)",
           });
 
-          request(data)
-            .then((res) => {
+          request(data).then((res) => {
               loading.close();
               if (res.code == 0) {
                 this.msgSuccess("保存成功");