fix: 今日知识卡 ref<any> 在JS中解析为比较表达式导致首页白屏
This commit is contained in:
@@ -128,7 +128,7 @@ const dimensions = ref(DIMENSIONS)
|
||||
|
||||
const newsList = ref([])
|
||||
const byDim = ref({}) // 各星域知识总数
|
||||
const todayKnowledge = ref<any>(null)
|
||||
const todayKnowledge = ref(null)
|
||||
|
||||
const todayDimName = computed(() => {
|
||||
const d = DIMENSIONS.find(x => x.id === todayKnowledge.value?.dim)
|
||||
|
||||
Reference in New Issue
Block a user