v2.0.0-preview.2 - 增加单元和UI测试用例
This commit is contained in:
@@ -5,7 +5,7 @@ const props = defineProps<{ visible: boolean }>()
|
||||
const versionList = ref<any[]>([])
|
||||
|
||||
onMounted(async () => {
|
||||
const res = await fetch('./version-history.json')
|
||||
const res = await fetch(new URL('./version-history.json', import.meta.url).href)
|
||||
const data = await res.json()
|
||||
// 按日期和版本号倒序排列
|
||||
versionList.value = data.sort((a, b) => {
|
||||
|
||||
Reference in New Issue
Block a user