实现抖音小程序显示(仅限显示)

This commit is contained in:
undefined
2024-08-04 17:11:12 +08:00
parent d1681ec2d5
commit ce81110bb3
41 changed files with 2729 additions and 2327 deletions
+4 -4
View File
@@ -88,7 +88,7 @@
import { reactive, computed } from 'vue';
import sheep from '@/sheep';
import { clone } from 'lodash';
import { clone } from 'lodash-es';
// 数据
const state = reactive({
@@ -196,11 +196,11 @@
const onPreview = () => {
if (!props.isPreview) return;
let previewImage = clone(props.list);
previewImage.forEach((item,index) => {
if(item.type === 'video') {
previewImage.forEach((item, index) => {
if (item.type === 'video') {
previewImage.splice(index, 1);
}
})
});
uni.previewImage({
urls:
previewImage.length < 1