Skip to content

Commit b920288

Browse files
author
liveipooli(李为)
committed
ADD: add url prefix in display page image uploading request
1 parent aab52d7 commit b920288

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

webapp/app/containers/Display/components/SettingForm.tsx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -345,7 +345,7 @@ export class SettingForm extends React.Component<ISettingFormProps, ISettingForm
345345
[item.name]: false
346346
}
347347
}, () => {
348-
formItemChange(item.name)(response.payload)
348+
formItemChange(item.name)('/api/rest_s/v1/visualis' + response.payload)
349349
})
350350
}
351351
}
@@ -354,7 +354,6 @@ export class SettingForm extends React.Component<ISettingFormProps, ISettingForm
354354
formItemChange(item.name)(null)
355355
e.stopPropagation()
356356
}
357-
358357
return (
359358
<Row>
360359
<Col span={24}>

webapp/app/containers/Display/sagas.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -174,7 +174,7 @@ export function* uploadCurrentSlideCover (action: DisplayActionType) {
174174
method: 'post',
175175
data: formData
176176
})
177-
const coverPath = asyncData.payload
177+
const coverPath = '/api/rest_s/v1/visualis' + asyncData.payload
178178
yield put(currentSlideCoverUploaded(coverPath))
179179
resolve(coverPath)
180180
} catch (err) {

0 commit comments

Comments
 (0)