授权码显示页面调整

This commit is contained in:
fan 2023-03-02 16:23:49 +08:00
parent 71502ba211
commit 5c0c9c7702
2 changed files with 7 additions and 2 deletions

View File

@ -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()) {

View File

@ -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) {