|
@@ -268,10 +268,19 @@ const toggleAppBox = async (type) => {
|
|
|
|
|
|
// 预览图片
|
|
// 预览图片
|
|
const previewImage = (item) => {
|
|
const previewImage = (item) => {
|
|
- const url = item?.localUrl || IM_PATH + item.url;
|
|
|
|
- showImagePreview([url]);
|
|
|
|
|
|
+ const imageList = wsStore.messages
|
|
|
|
+ .filter(m => m.contentType === MSG_TYPE.IMAGE)
|
|
|
|
+ .map(m => m.localUrl || IM_PATH + m.url);
|
|
|
|
+
|
|
|
|
+ const index = imageList.findIndex(url => url === (item.localUrl || IM_PATH + item.url));
|
|
|
|
+
|
|
|
|
+ showImagePreview({
|
|
|
|
+ images: imageList,
|
|
|
|
+ startPosition: index
|
|
|
|
+ });
|
|
};
|
|
};
|
|
|
|
|
|
|
|
+
|
|
const onFocus = () => {
|
|
const onFocus = () => {
|
|
// 隐藏所有面板
|
|
// 隐藏所有面板
|
|
showEmoji.value = false;
|
|
showEmoji.value = false;
|