File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11{
22 "name" : " picgo-plugin-vikadata" ,
3- "version" : " 1.0.1 " ,
3+ "version" : " 1.0.2 " ,
44 "description" : " 将图片上传到维格表" ,
55 "main" : " dist/index.js" ,
66 "publishConfig" : {
Original file line number Diff line number Diff line change @@ -123,7 +123,7 @@ export default class Uploader {
123123
124124 return ctx . request ( {
125125 method : "POST" ,
126- uri : `https://api.vika.cn/fusion/v1/datasheets/${ config . datasheetId } /attachments` ,
126+ url : `https://api.vika.cn/fusion/v1/datasheets/${ config . datasheetId } /attachments` ,
127127 headers : {
128128 'Authorization' : `Bearer ${ config . apiToken } `
129129 } ,
@@ -153,7 +153,7 @@ export default class Uploader {
153153 insertRecord = async ( ctx : IPicGo , config :IVikaConfig , postData : any ) => {
154154 return ctx . request ( {
155155 method : "POST" ,
156- uri : `https://api.vika.cn/fusion/v1/datasheets/${ config . datasheetId } /records` ,
156+ url : `https://api.vika.cn/fusion/v1/datasheets/${ config . datasheetId } /records` ,
157157 headers : {
158158 'Authorization' : `Bearer ${ config . apiToken } ` ,
159159 'Content-Type' : 'application/json'
You can’t perform that action at this time.
0 commit comments