import { useRouter } from 'vue-router'
const router = useRouter()
// 在新页面中打开
let page = router.resolve({
path: '/editor',
query: {
name
}
})
window.open(page.href, '_blank') //打开新的页面
import { useRoute } from 'vue-router'
const route = useRoute()
const name= route.query.name