fix:轮播组件修复
parent
7ef856cf65
commit
2921402e7e
|
|
@ -88,6 +88,7 @@
|
||||||
|
|
||||||
import { reactive, computed } from 'vue';
|
import { reactive, computed } from 'vue';
|
||||||
import sheep from '@/sheep';
|
import sheep from '@/sheep';
|
||||||
|
import { clone } from 'lodash';
|
||||||
|
|
||||||
// 数据
|
// 数据
|
||||||
const state = reactive({
|
const state = reactive({
|
||||||
|
|
@ -194,11 +195,12 @@
|
||||||
|
|
||||||
const onPreview = () => {
|
const onPreview = () => {
|
||||||
if (!props.isPreview) return;
|
if (!props.isPreview) return;
|
||||||
props.list.splice(
|
let previewImage = clone(props.list);
|
||||||
props.list.findIndex((item) => item.type === 'video'),
|
previewImage.forEach((item,index) => {
|
||||||
1,
|
if(item.type === 'video') {
|
||||||
);
|
previewImage.splice(index, 1);
|
||||||
let previewImage = props.list;
|
}
|
||||||
|
})
|
||||||
uni.previewImage({
|
uni.previewImage({
|
||||||
urls:
|
urls:
|
||||||
previewImage.length < 1
|
previewImage.length < 1
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue