Compare commits

...

2 Commits

Author SHA1 Message Date
21ebbf92d5 Merge branch 'wyfMain-dev'
Some checks failed
Check / lint (push) Has been cancelled
Check / typecheck (push) Has been cancelled
Check / build (build, 18.x, ubuntu-latest) (push) Has been cancelled
Check / build (build, 18.x, windows-latest) (push) Has been cancelled
Check / build (build:app, 18.x, ubuntu-latest) (push) Has been cancelled
Check / build (build:app, 18.x, windows-latest) (push) Has been cancelled
Check / build (build:mp-weixin, 18.x, ubuntu-latest) (push) Has been cancelled
Check / build (build:mp-weixin, 18.x, windows-latest) (push) Has been cancelled
2025-03-31 14:31:07 +08:00
f8c3689588 处理被踢出群时如果会话已被删除还会有红点的问题;处理上传图片视频没有正确调用publish接口的问题 2025-03-31 14:29:58 +08:00
5 changed files with 33 additions and 15 deletions

View File

@ -10,10 +10,9 @@ export const ServeGetUserSetting = (data) => {
export const userInfoApi = (data) => { export const userInfoApi = (data) => {
return request({ return request({
url: '/user/info', url: '/api/v1/users/erp/info',
method: 'POST', method: 'POST',
data, data,
baseURL:import.meta.env.VITE_EPR_BASEURL,
}) })
} }

View File

@ -141,7 +141,11 @@ class Talk extends Base {
this.updateTalkItem() this.updateTalkItem()
if ( if (
!useTalkStore().items[useTalkStore().findTalkIndex(this.getIndexName())] !useTalkStore().items[useTalkStore().findTalkIndex(this.getIndexName())]
?.is_disturb ?.is_disturb &&
!(
useTalkStore().findTalkIndex(this.getIndexName()) == -1 &&
(this.resource.msg_type == 1104 || this.resource.msg_type == 1115)
)
) { ) {
this.updateUnreadMsgNumAdd() this.updateUnreadMsgNumAdd()
} }

View File

@ -106,8 +106,10 @@ const photoActionsSelect = (index) => {
plus.nativeUI.toast('图片大小不能超过100MB') plus.nativeUI.toast('图片大小不能超过100MB')
return return
} }
let data = await onUploadImageVideo(file, 'image') const result = await onUploadImageVideo(file, 'image')
emit('selectImg', data, data.file_num) if (result) {
emit('selectImg', result, result.file_num)
}
}) })
}, },
}) })
@ -134,7 +136,9 @@ const photoActionsSelect = (index) => {
return return
} }
let data = await onUploadImageVideo(fileObj, 'image') let data = await onUploadImageVideo(fileObj, 'image')
emit('selectImg', data, data.file_num) if (data) {
emit('selectImg', data, data.file_num)
}
} }
}) })
}, },
@ -174,7 +178,9 @@ const photoActionsSelect = (index) => {
'video', 'video',
res.tempFilePath, res.tempFilePath,
) )
emit('selectImg', data, data.file_num) if (data) {
emit('selectImg', data, data.file_num)
}
}, },
}) })
} }

View File

@ -950,7 +950,15 @@ const editorOption = {
} }
const handleSelectImg = (data, file_num) => { const handleSelectImg = (data, file_num) => {
onSendMessage({ ...data, file_num }) if (Array.isArray(data)) {
//
data.forEach(item => {
onSendMessage({ ...item, file_num: item.file_num })
})
} else {
//
onSendMessage({ ...data, file_num })
}
} }
const virtualListChange = (vList) => { const virtualListChange = (vList) => {

View File

@ -44,7 +44,8 @@ const request = new Request({
messageInstance.warning(res.data.msg) messageInstance.warning(res.data.msg)
} }
if (res.data.status === 401) { if (res.data.status === 401) {
return getRefreshToken(res); return
// return getRefreshToken(res);
// uni.navigateTo({ // uni.navigateTo({
// url:'/pages/login/index' // url:'/pages/login/index'
// }) // })
@ -85,9 +86,9 @@ async function getRefreshToken(response) {
throw new Error(res.message || res.msg); throw new Error(res.message || res.msg);
} }
} catch (error) { } catch (error) {
uni.navigateTo({ // uni.navigateTo({
url:'/pages/login/index' // url:'/pages/login/index'
}) // })
throw error throw error
} finally { } finally {
isRefreshing = false; isRefreshing = false;
@ -95,9 +96,9 @@ async function getRefreshToken(response) {
refreshSubscribers = []; refreshSubscribers = [];
} }
} else { } else {
uni.navigateTo({ // uni.navigateTo({
url:'/pages/login/index' // url:'/pages/login/index'
}) // })
throw new Error('No refresh token available.'); throw new Error('No refresh token available.');
} }
} else { } else {