<template>
<div class="app-container">
save
<el-button type="primary" plain @click="test()">主要按钮</el-button>
</div>
</template>
<script>
export default {
data() {
return {
}
},
created: {
},
methods: {
test() {
this.$router.push({path:'/teacher/table'});
}
}
}
</script>
路由是单独文件定义