身份未确认之前不显示网页框架

This commit is contained in:
kuaifan 2022-06-06 16:45:48 +08:00
parent c08e217fb8
commit d75ee02b4a
2 changed files with 30 additions and 2 deletions

View File

@ -235,6 +235,22 @@
</keep-alive> </keep-alive>
</div> </div>
<!--等待覆盖层-->
<div v-if="userLoad" class="manage-box-load">
<div class="app-view-loading">
<div>
<div>PAGE LOADING</div>
<span></span>
<span></span>
<span></span>
<span></span>
<span></span>
<span></span>
<span></span>
</div>
</div>
</div>
<!--新建项目--> <!--新建项目-->
<Modal <Modal
v-model="addShow" v-model="addShow"
@ -395,6 +411,7 @@ export default {
data() { data() {
return { return {
loadIng: 0, loadIng: 0,
userLoad: true,
mateName: /macintosh|mac os x/i.test(navigator.userAgent) ? '⌘' : 'Ctrl', mateName: /macintosh|mac os x/i.test(navigator.userAgent) ? '⌘' : 'Ctrl',
@ -450,8 +467,10 @@ export default {
$A.messageSuccess("清除成功"); $A.messageSuccess("清除成功");
} }
// //
this.$store.dispatch("getUserInfo").catch(() => {}) this.$store.dispatch("getUserInfo").then(_ => {
this.$store.dispatch("getTaskPriority").catch(() => {}) this.userLoad = false;
}).catch(_ => {})
this.$store.dispatch("getTaskPriority").catch(_ => {})
// //
this.getReportUnread(0); this.getReportUnread(0);
this.notificationInit(); this.notificationInit();

View File

@ -260,6 +260,15 @@
overflow: auto; overflow: auto;
} }
} }
.manage-box-load {
position: fixed;
top: 0;
left: 0;
right: 0;
bottom: 0;
z-index: 99;
background-color: #ffffff;
}
} }
.page-manage-menu-dropdown { .page-manage-menu-dropdown {