[代码完善](v2.6): 适配Nginx反向代理部署/工信部地址更新

This commit is contained in:
ZhengJie
2020-09-17 20:08:26 +08:00
parent b4b8e5fd34
commit ffe3cbe4e5
3 changed files with 5 additions and 6 deletions

View File

@@ -8,7 +8,7 @@
<div v-if="$store.state.settings.showFooter" id="el-main-footer">
<span v-html="$store.state.settings.footerTxt" />
<span> </span>
<a href="http://www.beian.miit.gov.cn" target="_blank">{{ $store.state.settings.caseNumber }}</a>
<a href="https://beian.miit.gov.cn/#/Integrated/index" target="_blank">{{ $store.state.settings.caseNumber }}</a>
</div>
</section>
</template>

View File

@@ -23,11 +23,10 @@ router.beforeEach((to, from, next) => {
NProgress.done()
} else {
if (store.getters.roles.length === 0) { // 判断当前用户是否已拉取完user_info信息
store.dispatch('GetInfo').then(res => { // 拉取user_info
store.dispatch('GetInfo').then(() => { // 拉取user_info
// 动态路由,拉取菜单
loadMenus(next, to)
}).catch((err) => {
console.log(err)
}).catch(() => {
store.dispatch('LogOut').then(() => {
location.reload() // 为了重新实例化vue-router对象 避免bug
})
@@ -35,7 +34,7 @@ router.beforeEach((to, from, next) => {
// 登录时未拉取 菜单,在此处拉取
} else if (store.getters.loadMenus) {
// 修改成false防止死循环
store.dispatch('updateLoadMenus').then(res => {})
store.dispatch('updateLoadMenus')
loadMenus(next, to)
} else {
next()