上传文件新增storeType

This commit is contained in:
bob
2025-03-18 09:37:10 +08:00
parent 1fd977bfda
commit 820a8de390
2 changed files with 2 additions and 2 deletions

View File

@@ -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

View File

@@ -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 {