更新 GoView/src/views/chart/ContentConfigurations/components/CanvasPage/index.vue
This commit is contained in:
parent
562e60ec25
commit
8609879431
@ -139,7 +139,7 @@ import { loadAsyncComponent, fetchRouteParamsLocation } from '@/utils'
|
||||
import { PreviewScaleEnum } from '@/enums/styleEnum'
|
||||
import { ResultEnum } from '@/enums/httpEnum'
|
||||
import { icon } from '@/plugins'
|
||||
import { uploadFile } from '@/api/path'
|
||||
import { uploadBackGroundFile } from '@/api/path'
|
||||
|
||||
const { ColorPaletteIcon } = icon.ionicons5
|
||||
const { ScaleIcon, FitToScreenIcon, FitToHeightIcon, FitToWidthIcon } = icon.carbon
|
||||
@ -285,7 +285,7 @@ const customRequest = (options: UploadCustomRequestOptions) => {
|
||||
})
|
||||
let uploadParams = new FormData()
|
||||
uploadParams.append('object', newNameFile)
|
||||
const uploadRes = await uploadFile(uploadParams)
|
||||
const uploadRes = await uploadBackGroundFile(uploadParams)
|
||||
|
||||
if (uploadRes && uploadRes.code === ResultEnum.SUCCESS) {
|
||||
if (uploadRes.data.fileurl) {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user