8 lines
175 B
TypeScript
8 lines
175 B
TypeScript
export const usePreviewImage = (str: string | undefined) => {
|
|
if (str == undefined) return;
|
|
let urlList = str.split(",");
|
|
uni.previewImage({
|
|
urls: urlList,
|
|
});
|
|
};
|