mirror of
https://gitee.com/lijingbo-2021/open-anylink-web.git
synced 2025-12-30 11:02:25 +00:00
上传文件新增storeType
This commit is contained in:
@@ -69,7 +69,7 @@ const onUpload = async () => {
|
||||
|
||||
isLoading.value = true
|
||||
try {
|
||||
const res = await mtsUploadService({ file: file })
|
||||
const res = await mtsUploadService({ file: file, storeType: 0 })
|
||||
emit('update:newAvatar', {
|
||||
avatar: res.data.data.originUrl,
|
||||
avatarThumb: res.data.data.thumbUrl
|
||||
|
||||
@@ -69,7 +69,7 @@ const getContent = async () => {
|
||||
el_loading_options.text = '图片上传中...' //上传中加一个loading效果
|
||||
const loadingInstance = ElLoading.service(el_loading_options)
|
||||
try {
|
||||
const res = await mtsUploadService({ file: file }) //上传图片至服务端
|
||||
const res = await mtsUploadService({ file: file, storeType: 1 }) //上传图片至服务端
|
||||
imageData.setImage(props.sessionId, res.data.data) // 缓存image数据
|
||||
content = content + `{${res.data.data.objectId}}`
|
||||
} finally {
|
||||
|
||||
Reference in New Issue
Block a user