v2.0.0-preview.2 - 增加单元和UI测试用例
This commit is contained in:
+1
-1
@@ -54,7 +54,7 @@ const dataSourceOptions = computed(() => {
|
||||
})
|
||||
})
|
||||
|
||||
const currentDataSource = ref<DataSourceKey>('large')
|
||||
const currentDataSource = ref<DataSourceKey>('normal')
|
||||
const dataLoading = ref(false)
|
||||
|
||||
const cloneData = <T>(data: T): T => {
|
||||
|
||||
@@ -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