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/tjUser.vue | 14 ++++++++------
1 files changed, 8 insertions(+), 6 deletions(-)
diff --git a/src/views/dashboard/tjUser.vue b/src/views/dashboard/tjUser.vue
index 149120d..028e773 100644
--- a/src/views/dashboard/tjUser.vue
+++ b/src/views/dashboard/tjUser.vue
@@ -113,12 +113,14 @@
}
},
mounted() {
- this.getDicts('PHYSICALEXAMTYPE').then(response => {
- this.physicalExamTypeOptions = response.data
- })
- this.getDicts('ECG').then(response => {
- this.ecgOptions = response.data
- })
+ setTimeout(() => {
+ this.getDicts('PHYSICALEXAMTYPE').then(response => {
+ this.physicalExamTypeOptions = response.data
+ })
+ this.getDicts('ECG').then(response => {
+ this.ecgOptions = response.data
+ })
+ }, 1000)
},
methods: {
typeFormat(row, column) {
--
Gitblit v1.8.0