dev路由404问题

This commit is contained in:
mengxiaolong
2020-09-09 14:54:25 +08:00
parent 870adfd683
commit bafabafb53

View File

@@ -45,14 +45,11 @@ export default {
if (this.level === '3') return
if (this.level === '1') window.localStorage.setItem('nbsSecondManageCode', code)
else if (this.level === '2') window.localStorage.setItem('nbsThirdManageCode', code)
// 生产环境路径中不包含井号, 开发环境包含井号无需再次拼接
if (process.env.NODE_ENV === 'production') {
this.url = '/#' + this.url
}
let link = location.origin + '/#' + this.url
this.$jump({
flag: 'h5',
extra: {
url: `${location.origin + this.url}?name=${encodeURIComponent(name)}`
url: `${link}?name=${encodeURIComponent(name)}`
// forbidSwipeBack: '1',
// needRefresh: '1'
},