src/App.vue @@ -12,11 +12,11 @@ }, watch: {}, methods: { goHere(path){ this.$router.push({path:'/'+path}); goHere (path) { this.$router.push({path:'/'+path}) } }, }; } } </script> <style lang="less" scoped> #app{