this.$router.go(-1)
<template> <div> <button class="btn btn-success" @click="goback()">返回上一页</button> </div> </template> <script> export default { name: "GoBack", data () { return { }; }, methods:{ goback(){ this.$router.go(-1) } } } </script> <style lang="css" scoped> </style>
原文地址:https://www.cnblogs.com/luguankun/p/10662278.html
时间: 2024-11-11 13:47:27