<router-link to="/Home" v-slot="{ navigate }" custom> <button @click="navigate"> → </button> </router-link>
注意: 1.v-slot变量只能为navigate,并且必须带大括号{}