From bda4243d007a9791bf1df0e14d2053cf92a9eb94 Mon Sep 17 00:00:00 2001
From: yz <yz_0812@outlook.com>
Date: 星期五, 19 三月 2021 02:11:58 +0800
Subject: [PATCH] 添加首页延时加载
---
src/views/dashboard/lzUser.vue | 14 ++++++++------
1 files changed, 8 insertions(+), 6 deletions(-)
diff --git a/src/views/dashboard/lzUser.vue b/src/views/dashboard/lzUser.vue
index 8c058e8..924a3df 100644
--- a/src/views/dashboard/lzUser.vue
+++ b/src/views/dashboard/lzUser.vue
@@ -112,12 +112,14 @@
}
},
mounted() {
- this.getDicts('ZCTYPE').then(response => {
- this.arbitrationTypeOptions = response.data
- })
- this.getDicts('archivesStatus').then(response => {
- this.archivesStatusOptions = response.data
- })
+ setTimeout(() => {
+ this.getDicts('ZCTYPE').then(response => {
+ this.arbitrationTypeOptions = response.data
+ })
+ this.getDicts('archivesStatus').then(response => {
+ this.archivesStatusOptions = response.data
+ })
+ }, 1000)
},
methods: {
arbitrationTypeFormat(row, column) {
--
Gitblit v1.8.0