diff --git a/.env.production b/.env.production index 0c8deaf..9032c23 100644 --- a/.env.production +++ b/.env.production @@ -3,4 +3,4 @@ NODE_ENV='production' VUE_APP_ENV = 'production' VUE_APP_BASE_URL = '/' outputDir = 'epmet-wx-pa' -PUBLIC_PATH = 'epmet-wx-pa' \ No newline at end of file +PUBLIC_PATH = '' \ No newline at end of file diff --git a/src/router/index.js b/src/router/index.js index 08dbc65..5de0dd1 100644 --- a/src/router/index.js +++ b/src/router/index.js @@ -52,7 +52,7 @@ function paramsFormat(params) { router.beforeEach((to, from, next) => { let urlParams = getQueryParams() if(urlParams.houseId){ - console.log(urlParams); + console.log(urlParams,'初始路由参数'); store.commit('SET_HOUSE_ID', urlParams.houseId) }else{ store.commit('SET_HOUSE_ID', null) @@ -67,7 +67,7 @@ router.beforeEach((to, from, next) => { } else { store.commit('SET_APP_ID', localStorage.getItem('appId')) } - if (!localStorage.getItem('appId') && to.path !== '/errorPage') { + if (!localStorage.getItem('appId') && to.path !== '/errorPage'&& to.path != '/houseQR') { if(to.path === '/errorPage'){ next('/errorPage') }else{ diff --git a/src/views/houseQR/index.vue b/src/views/houseQR/index.vue index e9fff96..c5457fc 100644 --- a/src/views/houseQR/index.vue +++ b/src/views/houseQR/index.vue @@ -3,12 +3,12 @@