在 vue3 里拦截器中添加动态路由router.beforeEach(async (to, from, next) => { const store = userStore() if (!store.asyncRouteMark) { router.addRoute
最近在写vue的时候,想用我的测试域名(解析地址为127.0.0.1的一个域名)打开我的vue项目,vue却跑了Invalid Host header 这个错误,这里写一下解决方法原因这是由于新版的webpack-dev-server出于安全考虑,默认检查hostname,如果hostname不是配