Skip to content

Commit

Permalink
Merge pull request #2927 from dogodo-cc/version_list
Browse files Browse the repository at this point in the history
feat: versions-list.vue 提供列表的默认值,确保拉数据的时候不会造成页面抖动
  • Loading branch information
MrKylinGithub authored May 28, 2024
2 parents 5e529fd + 2d7857f commit 583b6b6
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion @config/theme/versions-list.vue
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,11 @@ const props = defineProps({
currentVersion: String
})
const list = ref([]);
const list = ref([
{
version: props.currentVersion
}
]);
onMounted(() => {
const url = `/creator/versions/versions.json?v=${Date.now()}`;
Expand Down

0 comments on commit 583b6b6

Please sign in to comment.