<keep-alive :include="tagList"><component :is="Component" /></keep-alive>const tagList = computed(() => {return $store.state.tagList
})
原因: store.state.app.tagList返回的是一个 Proxy, 代理了数组,并不是数组本身
修改:将 的 tagList数组模式改为 逗号分隔字符串模式 就正常了
即: const tagList = computed(() => store.state.app.tagList .join(‘,’))