You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
显示空白页,控制台报错:
Failed to execute 'replaceState' on 'History': A history state object with URL 'http:' cannot be created in a document with origin 'http://localhost:8081' and URL 'http://localhost:8081///////'."
困扰了我三天的一个问题,希望可以得到解决。是我的使用方式有问题,还是确实是个bug呢?
The text was updated successfully, but these errors were encountered:
Version
3.5.2
Reproduction link
codesandbox.io
Steps to reproduce
const router = new VueRouter({
routes ,
mode:'history',
scrollBehavior() {
return {x:0,y:0}
}
})
What is expected?
在浏览器输入localhost:8080////// 可以正常访问
What is actually happening?
显示空白页,控制台报错:
Failed to execute 'replaceState' on 'History': A history state object with URL 'http:' cannot be created in a document with origin 'http://localhost:8081' and URL 'http://localhost:8081///////'."
困扰了我三天的一个问题,希望可以得到解决。是我的使用方式有问题,还是确实是个bug呢?
The text was updated successfully, but these errors were encountered: