一、在template模板中添加button按钮加入click事件
<el-button type="primary" @click="func()">添加试题</el-button>
二、在methods中写入路径
func() {
this.$router.push({ path: "add-question" });
},
三、修改路由文件,加入所有跳转的本地界面
一、在template模板中添加button按钮加入click事件
<el-button type="primary" @click="func()">添加试题</el-button>
二、在methods中写入路径
func() {
this.$router.push({ path: "add-question" });
},
三、修改路由文件,加入所有跳转的本地界面