Skip to content

Commit 0987432

Browse files
committed
fix: fix typo in code
1 parent 10f385d commit 0987432

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

custom/quillEditor.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ async function saveToServer(file: File) {
128128
const originalFilename = file.name.split('.').slice(0, -1).join('.');
129129
const originalExtension = file.name.split('.').pop();
130130
// send fd to s3
131-
const { uploadUrl, tagline, previewUrl, s3Path, error } = await callAdminForthApi({
131+
const { uploadUrl, tagline, previewUrl, filePath, error } = await callAdminForthApi({
132132
path: `/plugin/${props.meta.uploadPluginInstanceId}/get_file_upload_url`,
133133
method: 'POST',
134134
body: {
@@ -181,7 +181,7 @@ async function saveToServer(file: File) {
181181
const range = quill.getSelection();
182182
quill.insertEmbed(range.index, 'image', {
183183
url: previewUrl,
184-
s3Path: s3Path,
184+
s3Path: filePath,
185185
alt: file.name
186186
}, 'user');
187187

0 commit comments

Comments
 (0)