解决Vue数据第一次不渲染问题(失去响应式问题)

使用计算属性 computed来实现

const leftNavCache = computed(() => {
	return topList.value[activeNav.value].list
})
posted @ 2024-05-30 18:22  Felix_Openmind  阅读(90)  评论(0)    收藏  举报
*{cursor: url(https://files-cdn.cnblogs.com/files/morango/fish-cursor.ico),auto;}