<div id="app-7">
<ol>
<!--
Now we provide each todo-item with the todo object
it's representing, so that its content can be dynamic.
We also need to provide each component with a "key"
-->
<todo-item
v-for="item in gr
请救救我!我有两页:Home、About和一个组件SecondPage。这个组件有两个带有数据的表,它应该显示在About页面上。但是,当我导航到About页面时,所有数据都被清除,表为空。我试着将About页面中的所有内容作为About组件显示在我的主页Home中,它可以工作!所以道具是正确传递的。为什么当我单击About页面时,表中的所有数据都会消失?我试过.prevent,但它不像我预期的那样工作。
About.vue
<template>
<div class="about">
<h1>This is an about p