1.打开一个新窗口并跳转
window.open("/videoAd?id=" + e.id)
2.在当前窗口打开新页面
window.location.href = "/classDel"
3.使用路由跳转方式
当前页面的全局导入vue-router
import {
useRouter
} from "vue-router";
使用
const router = useRouter()
this.$router.push("/apphome")