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