子路由匹配如下:
'compare/:compare',
跳转的时候传入path: /${this.username}/${this.reponame}/pulls/compare/${this.repo.default_branch}...${this.repo.default_branch}
浏览器地址栏显示:http://localhost:8080/u177841/resetdb/pulls/compare/master...master,此时页面正常打开,路由中:compare匹配的是‘master...master’。
但是F5刷新后就找不到这个路径了,报错:Cannot GET /u177841/resetdb/pulls/compare/master...master。另外我还发现用*匹配的动态路径也有这个问题。请问是什么原因呢?我检查currentRoute中的params也没有发现参数有什么问题,除了有...
你用的是vue-router的history模式?这个模式需要后端配合匹配所有的路由