标签:false 参考 target history length this get com his
methods: { back(){ if (window.history.length <= 1) { this.$router.push({path:‘/‘}) return false } else { this.$router.go(-1) } } },
参考链接:https://segmentfault.com/q/1010000010714863
标签:false 参考 target history length this get com his
原文地址:https://www.cnblogs.com/beileixinqing/p/9592313.html