问题出在这里:<button outline v-for="name in data.splice(1)" :key="name">{{name}}</button>,遍历的时候执行列表切片函数,将原本的data改变了。所以这里应该改成: <button outline v-for="name in [...data].splice(1)" :key="name">{{name}}</button>
<button outline v-for="name in data.splice(1)" :key="name">{{name}}</button>
<button outline v-for="name in [...data].splice(1)" :key="name">{{name}}</button>