From 4c810c1feb3f78c458084d73e89adc6c4f2256f1 Mon Sep 17 00:00:00 2001
From: lzhe <lzhe@example.com>
Date: 星期四, 06 六月 2024 18:22:55 +0800
Subject: [PATCH] 1

---
 src/views/master/person/main/index.vue |   10 +++++-----
 1 files changed, 5 insertions(+), 5 deletions(-)

diff --git a/src/views/master/person/main/index.vue b/src/views/master/person/main/index.vue
index d42cca0..3c5359e 100644
--- a/src/views/master/person/main/index.vue
+++ b/src/views/master/person/main/index.vue
@@ -2,7 +2,7 @@
  * @Author: lzhe lzhe@example.com
  * @Date: 2024-03-26 10:28:33
  * @LastEditors: lzhe lzhe@example.com
- * @LastEditTime: 2024-03-28 18:20:25
+ * @LastEditTime: 2024-04-09 20:12:59
  * @FilePath: /smart-web/src/views/master/person/main/index.vue
  * @Description: 杩欐槸榛樿璁剧疆,璇疯缃甡customMade`, 鎵撳紑koroFileHeader鏌ョ湅閰嶇疆 杩涜璁剧疆: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
 -->
@@ -10,13 +10,13 @@
 	<div class="person-main">
 		<el-tabs v-model="activeName" type="card" @tab-click="handleClick">
 			<el-tab-pane label="鍛樺伐" name="first">
-				<person-person></person-person>
+				<person-person v-if="activeName == 'first'"></person-person>
 			</el-tab-pane>
 			<el-tab-pane label="宀椾綅" name="second">
-				<person-post></person-post>
+				<person-post v-if="activeName == 'second'"></person-post>
 			</el-tab-pane>
 			<el-tab-pane label="閮ㄩ棬" name="third">
-				<person-department></person-department>
+				<person-department v-if="activeName == 'third'"></person-department>
 			</el-tab-pane>
 		</el-tabs>
 	</div>
@@ -43,7 +43,7 @@
 		},
 		methods: {
 			handleClick(tab, event) {
-				console.log(tab, event);
+				console.log(tab.props.label, this.activeName);
 			}
 		}
 	}

--
Gitblit v1.9.3