更改id类型为string
This commit is contained in:
@@ -111,7 +111,7 @@ import { ref, reactive, onMounted } from 'vue';
|
||||
import { ElMessage, ElMessageBox } from 'element-plus';
|
||||
|
||||
interface VideoItem {
|
||||
id: number;
|
||||
id: string;
|
||||
name: string;
|
||||
thumbnail: string;
|
||||
videoType: string;
|
||||
@@ -141,7 +141,7 @@ const previewVideo = ref<VideoItem | null>(null);
|
||||
// 模拟数据
|
||||
const mockData: VideoItem[] = [
|
||||
{
|
||||
id: 1,
|
||||
id: '1',
|
||||
name: '商务男性数字人-产品介绍',
|
||||
thumbnail: 'https://picsum.photos/400/225?random=10',
|
||||
videoType: 'avatar',
|
||||
@@ -154,7 +154,7 @@ const mockData: VideoItem[] = [
|
||||
createdAt: '2024-01-15 10:30:00',
|
||||
},
|
||||
{
|
||||
id: 2,
|
||||
id: '2',
|
||||
name: '甜美女性数字人-直播带货',
|
||||
thumbnail: 'https://picsum.photos/400/225?random=11',
|
||||
videoType: 'avatar',
|
||||
@@ -167,7 +167,7 @@ const mockData: VideoItem[] = [
|
||||
createdAt: '2024-01-14 14:20:00',
|
||||
},
|
||||
{
|
||||
id: 3,
|
||||
id: '3',
|
||||
name: '科技感背景-蓝色粒子',
|
||||
thumbnail: 'https://picsum.photos/400/225?random=12',
|
||||
videoType: 'background',
|
||||
@@ -180,7 +180,7 @@ const mockData: VideoItem[] = [
|
||||
createdAt: '2024-01-13 09:15:00',
|
||||
},
|
||||
{
|
||||
id: 4,
|
||||
id: '4',
|
||||
name: '办公室场景背景',
|
||||
thumbnail: 'https://picsum.photos/400/225?random=13',
|
||||
videoType: 'background',
|
||||
@@ -193,7 +193,7 @@ const mockData: VideoItem[] = [
|
||||
createdAt: '2024-01-12 16:45:00',
|
||||
},
|
||||
{
|
||||
id: 5,
|
||||
id: '5',
|
||||
name: '转场特效-渐变',
|
||||
thumbnail: 'https://picsum.photos/400/225?random=14',
|
||||
videoType: 'material',
|
||||
@@ -206,7 +206,7 @@ const mockData: VideoItem[] = [
|
||||
createdAt: '2024-01-11 11:00:00',
|
||||
},
|
||||
{
|
||||
id: 6,
|
||||
id: '6',
|
||||
name: '知性女性数字人-新闻播报',
|
||||
thumbnail: 'https://picsum.photos/400/225?random=15',
|
||||
videoType: 'avatar',
|
||||
|
||||
Reference in New Issue
Block a user