后期修改完善,上线版本

This commit is contained in:
2025-11-12 18:11:11 +08:00
parent c54f9c9976
commit 8f57683dd5
98 changed files with 2110 additions and 867 deletions

View File

@ -1,9 +1,23 @@
<script>
// 从 sessionStorage 获取缓存数据的辅助函数
function getCachedSortType() {
try {
const cachedData = sessionStorage.getItem('launches_search_cache');
if (cachedData) {
const parsedData = JSON.parse(cachedData);
return parsedData.sortType || 'popular';
}
} catch (e) {
console.error('获取缓存的排序类型失败', e);
}
return 'popular';
}
export default {
props: {
value: {
type: String,
default: 'popular'
default: getCachedSortType
}
},
methods: {