Skip to content

Commit

Permalink
chore: upload app url
Browse files Browse the repository at this point in the history
  • Loading branch information
jevantang committed Jun 12, 2024
1 parent 9e215bf commit 241af44
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions sdk/editor/sections/toolbar/toolbar.js
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ Component({

// 插件页上传
case 'page':
this.onPluginPageUpload(config.image.uploadUrl, `${type}Draft,${did},image`);
this.onPluginPageUpload(config.image.uploadAppUrl, `${type}Draft,${did},image`);
break;

// s3 sdk
Expand All @@ -101,7 +101,7 @@ Component({

// 插件页上传
case 'page':
this.onPluginPageUpload(config.video.uploadUrl, `${type}Draft,${did},video`);
this.onPluginPageUpload(config.video.uploadAppUrl, `${type}Draft,${did},video`);
break;

// s3 sdk
Expand All @@ -124,7 +124,7 @@ Component({

// 插件页上传
case 'page':
this.onPluginPageUpload(config.audio.uploadUrl, `${type}Draft,${did},audio`);
this.onPluginPageUpload(config.audio.uploadAppUrl, `${type}Draft,${did},audio`);
break;

// s3 sdk
Expand All @@ -147,7 +147,7 @@ Component({

// 插件页上传
case 'page':
this.onPluginPageUpload(config.document.uploadUrl, `${type}Draft,${did},document`);
this.onPluginPageUpload(config.document.uploadAppUrl, `${type}Draft,${did},document`);
break;

// s3 sdk
Expand Down Expand Up @@ -277,11 +277,11 @@ Component({
},

// 插件页上传
onPluginPageUpload: async function (uploadUrl, uploadInfo) {
onPluginPageUpload: async function (uploadAppUrl, uploadInfo) {
// 扩展 Web-View 数据
const navigatorData = {
title: await fresnsLang('upload'),
url: uploadUrl,
url: uploadAppUrl,
uploadInfo: uploadInfo,
postMessageKey: 'fresnsEditorUpload',
};
Expand Down

0 comments on commit 241af44

Please sign in to comment.