<button @click="linkDetails">添加</button>
<script setup>
import { useRouter } from "vue-router";
const $router = useRouter();
// 跳转方法
const link = (e) => {
console.log("微信公众号文章id", e);
$router.push({
name: "weChartDetails",
query: {},
});
};
</script>