vue实现页面跳转(简易版)
1、用点击函数
<button class="btntop" @click="gootherpage">跳转页面</button>
函数
gootherpage(){ this.$router.push('/FileDetail') },
2、rooterlink
<router-link to="/FileDetail" tag='a'>详情 </router-link>
注以上方法都需要先配置页面的路由
{ path: '/FileDetail', name:'FileDetail', component: FileDetail }
【推荐】2025 HarmonyOS 鸿蒙创新赛正式启动,百万大奖等你挑战
【推荐】博客园的心动:当一群程序员决定开源共建一个真诚相亲平台
【推荐】开源 Linux 服务器运维管理面板 1Panel V2 版本正式发布
【推荐】轻量又高性能的 SSH 工具 IShell:AI 加持,快人一步