浏览代码

品种申请bug修改

jwyu 3 年之前
父节点
当前提交
a01d1a490a
共有 2 个文件被更改,包括 8 次插入5 次删除
  1. 1 1
      pages-applyPermission/applyPermission.vue
  2. 7 4
      utils/request.js

+ 1 - 1
pages-applyPermission/applyPermission.vue

@@ -101,7 +101,7 @@ export default {
         // 上传名片
         async handleUploadCard() {
             const res = await uploadImg()
-            this.cardImg=res
+            this.cardImg=res[0]
         },
 
         // 去选择品种

+ 7 - 4
utils/request.js

@@ -14,10 +14,13 @@ const showError=error=>{
 			errMsg=error.msg;
 			break;
 	}
-	uni.showToast({
-		title:errMsg,
-		icon:'none'
-	})
+	setTimeout(()=>{
+		uni.showToast({
+			title:errMsg,
+			icon:'none'
+		})
+	},0)
+	
 }