shallowRef 定义得数组 清空
let component_list = shallowRef([
{unit: Head, name: 'Head', id: 1},
{unit: TopClass, name: 'TopClass', id: 2},
])
component_list.value.length = [] // 清空
定义数据打印图片:
清空数组 数据 图片 (达到预期目的):
标签:Head,TopClass,Vue3,Reactive,数组,清空,id,unit From: https://www.cnblogs.com/zhang-hong/p/16993598.html