jwyu 2 年之前
父節點
當前提交
04609b0e7c
共有 1 個文件被更改,包括 4 次插入2 次删除
  1. 4 2
      pages-voice/addVoice.vue

+ 4 - 2
pages-voice/addVoice.vue

@@ -175,11 +175,11 @@
             confirm-button-text="知道了"
             confirm-button-color="#E3B377"
             @confirm="showTime=true"
-            @close="showTimeAttention=false"
+            @close="showTimeAttention=false,showTime=true"
         >
             <view style="padding:40px 20px 20px;text-align:center;position: relative;">
                 设置定时发布后,会在设定的时间发布语音播报并推送模板消息
-                <van-icon name="cross" size="20" style="position: absolute;right:10px;top:10px" color="#666" @click="showTime=true"/>
+                <van-icon name="cross" size="20" style="position: absolute;right:10px;top:10px" color="#666" @click="showTimeAttention=false,showTime=true"/>
             </view>
         </van-dialog>
     </view>
@@ -641,6 +641,8 @@ export default {
             uploadImg({count:5-this.imgList.length}).then(res=>{
                 this.imgList=[...this.imgList,...res]
             }).catch(err=>{
+                console.log(err);
+                if(err.errMsg=='chooseImage:fail cancel') return
                 uni.showToast({
                     title:'上传失败,请重试!',
                     icon:'none'