fix:剧本列表删除 fallbackScripts 假数据
This commit is contained in:
@@ -175,83 +175,7 @@ const statusFilters = [
|
|||||||
{ label: '收藏夹', value: 'favorite' }
|
{ label: '收藏夹', value: 'favorite' }
|
||||||
]
|
]
|
||||||
|
|
||||||
const fallbackScripts = [
|
const scripts = computed(() => store.scripts || [])
|
||||||
{
|
|
||||||
id: 'demo-1',
|
|
||||||
title: '逆袭人生:从低谷到巅峰',
|
|
||||||
length: 'long',
|
|
||||||
status: 'progress',
|
|
||||||
tags: ['逆袭成长', '都市', '事业', '热血'],
|
|
||||||
summary: '从被分手、被否定的低谷开始,凭借天赋、努力与智慧,一步步逆袭成为行业巅峰,收获事业、财富...',
|
|
||||||
chapterCount: 28,
|
|
||||||
wordCount: 128000,
|
|
||||||
updatedAt: '今天 21:30',
|
|
||||||
progress: 28
|
|
||||||
},
|
|
||||||
{
|
|
||||||
id: 'demo-2',
|
|
||||||
title: '如果那年我没有放弃',
|
|
||||||
length: 'long',
|
|
||||||
status: 'done',
|
|
||||||
tags: ['成长治愈', '校园', '爱情', '温暖'],
|
|
||||||
summary: '重回十八岁,弥补遗憾,勇敢追梦,守护那些曾经错过的人和事。',
|
|
||||||
chapterCount: 36,
|
|
||||||
wordCount: 156000,
|
|
||||||
completedAt: '2025.05.10',
|
|
||||||
isFavorite: true
|
|
||||||
},
|
|
||||||
{
|
|
||||||
id: 'demo-3',
|
|
||||||
title: '重生之我在未来等你',
|
|
||||||
length: 'long',
|
|
||||||
status: 'progress',
|
|
||||||
tags: ['重生', '科幻', '爱情', '未来'],
|
|
||||||
summary: '一觉醒来,回到十年前的那一天。这一次,我不仅要改变自己的人生,还要找到你。',
|
|
||||||
chapterCount: 18,
|
|
||||||
wordCount: 83000,
|
|
||||||
updatedAt: '昨天 18:47',
|
|
||||||
progress: 46
|
|
||||||
},
|
|
||||||
{
|
|
||||||
id: 'demo-4',
|
|
||||||
title: '天才作曲家的璀璨之路',
|
|
||||||
length: 'long',
|
|
||||||
status: 'draft',
|
|
||||||
tags: ['音乐', '励志', '天赋', '梦想'],
|
|
||||||
summary: '从默默无闻到享誉全球,用音符征服世界,写下属于自己的传奇乐章。',
|
|
||||||
chapterCount: 9,
|
|
||||||
wordCount: 31000,
|
|
||||||
createdAt: '2025.05.08'
|
|
||||||
},
|
|
||||||
{
|
|
||||||
id: 'demo-5',
|
|
||||||
title: '咖啡馆里的奇遇',
|
|
||||||
length: 'short',
|
|
||||||
status: 'done',
|
|
||||||
tags: ['生活', '治愈', '奇幻', '温暖'],
|
|
||||||
summary: '一杯咖啡,一次奇遇,改变了我平凡的生活,也让我遇见了最特别的你。',
|
|
||||||
chapterCount: 1,
|
|
||||||
wordCount: 23000,
|
|
||||||
completedAt: '2025.05.01',
|
|
||||||
isFavorite: true
|
|
||||||
},
|
|
||||||
{
|
|
||||||
id: 'demo-6',
|
|
||||||
title: '赛博时代的追光者',
|
|
||||||
length: 'long',
|
|
||||||
status: 'draft',
|
|
||||||
tags: ['科幻', '未来', '冒险', '热血'],
|
|
||||||
summary: '在数据与代码构建的世界里,我追寻光明,也在黑暗中寻找真正的自由。',
|
|
||||||
chapterCount: 3,
|
|
||||||
wordCount: 12000,
|
|
||||||
createdAt: '2025.05.12'
|
|
||||||
}
|
|
||||||
]
|
|
||||||
|
|
||||||
const scripts = computed(() => {
|
|
||||||
const list = store.scripts || []
|
|
||||||
return list.length ? list : fallbackScripts
|
|
||||||
})
|
|
||||||
|
|
||||||
const visibleScripts = computed(() => {
|
const visibleScripts = computed(() => {
|
||||||
const filtered = scripts.value.filter(script => {
|
const filtered = scripts.value.filter(script => {
|
||||||
|
|||||||
Reference in New Issue
Block a user