【发布时间】:2017-03-24 20:35:26
【问题描述】:
我正在尝试访问这样的 URL:
methods: {
show (file) {
this.$router.go('/file/' + file.path + '?token=' + localStorage.getItem('jwt-token'));
}
}
我没有尝试访问组件。我只想去以下网址:
'/file/' + file.path + '?token=' + localStorage.getItem('jwt-token')
但它不起作用。它正在将我重定向到主页。
我怎样才能完成这项工作?
【问题讨论】:
-
vue 路由器 1 或 2?
-
你发现了吗?以下任何答案对您有帮助吗?
标签: javascript vue.js vue-router