소스 검색

更新 上传文件参数

wzh 3 년 전
부모
커밋
971aa92580
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      miniprogram/pages/shipOwnerManage/addShipOnwer/addShipOnwer.js

+ 1 - 1
miniprogram/pages/shipOwnerManage/addShipOnwer/addShipOnwer.js

@@ -70,7 +70,7 @@ Page({
   },
   },
   async uploadId(e) {
   async uploadId(e) {
     let res = await uploadImage("/cos/upload", {
     let res = await uploadImage("/cos/upload", {
-      type
+      type: 1
     })
     })
     if (res.status == 0) {
     if (res.status == 0) {
       if (e.currentTarget.dataset.type == 'head') {
       if (e.currentTarget.dataset.type == 'head') {