瀏覽代碼

编辑bug修复

lsx 2 年之前
父節點
當前提交
b472a6e7cf
共有 1 個文件被更改,包括 2 次插入2 次删除
  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("保存成功");