授权码显示页面调整
This commit is contained in:
parent
71502ba211
commit
5c0c9c7702
@ -8,7 +8,7 @@
|
||||
<img :src="loadingImg" style="width: 100%; height: 100%;">
|
||||
</div>
|
||||
<div
|
||||
v-if="!$store.state.user.baseUrl"
|
||||
v-if="!$store.state.user.baseUrl && needLoading"
|
||||
v-loading="!$store.state.user.baseUrl"
|
||||
element-loading-text="拼命加载中"
|
||||
element-loading-background="rgba(0, 0, 0, 0)"
|
||||
@ -51,6 +51,11 @@ export default {
|
||||
jlFavicon: Favicon
|
||||
};
|
||||
},
|
||||
computed: {
|
||||
needLoading() {
|
||||
return this.$route.path !== '/authorization';
|
||||
}
|
||||
},
|
||||
watch: {
|
||||
'$store.state.socket.beLogoutCount': async function(val) {
|
||||
if (this.$store.state.socket.loggedOutMsg.token === getToken()) {
|
||||
|
@ -81,7 +81,7 @@ router.beforeEach( async (to, from, next) => {
|
||||
// 登陆成功页面
|
||||
project = getSessionStorage('project') || 'login';
|
||||
}
|
||||
if (frontConfigMark !== project) {
|
||||
if (frontConfigMark !== project && to.path !== '/authorization') {
|
||||
const response = await getFrontProjectConfigByLogin(project);
|
||||
const {browserTitle, loginProLogo, baseApiUrl, baseSite, caseShow, helpShow, ossUrl, homeTitle, homeProLogoWidth} = response.data.viewSetting;
|
||||
if (!store.state.user.baseUrl && project) {
|
||||
|
Loading…
Reference in New Issue
Block a user