Files
pj_h5_cloud/src/sheep/hooks/use-img.ts
T
2024-11-12 04:33:34 +08:00

8 lines
175 B
TypeScript

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