From 57e3bead08715d72efaeffe90fafa179b8366473 Mon Sep 17 00:00:00 2001
From: inleft <inleft@qq.com>
Date: Sat, 18 May 2024 12:02:14 +0800
Subject: [PATCH] 1.RSS更新 2.调整标签hover位置 3.font size

---
 src/components/fixed/header.vue |    9 +++++++++
 1 files changed, 9 insertions(+), 0 deletions(-)

diff --git a/src/components/fixed/header.vue b/src/components/fixed/header.vue
index a5b9549..3c7566f 100644
--- a/src/components/fixed/header.vue
+++ b/src/components/fixed/header.vue
@@ -7,6 +7,7 @@
 				<router-link to="/link">友人帐</router-link>
 				<router-link to="/platform">月台</router-link>
 				<router-link to="/login">登录</router-link>
+				<router-link to="/edit" v-if="showHidenButton">编辑</router-link>
 				<!-- <router-link to="/comment">测试页</router-link> -->
 			</div>
 		</a-col>
@@ -24,8 +25,15 @@
 </template>
 
 <script>
+	import myConstant from "../../config/myConstant.js"
 	export default {
 		mounted() {
+			let tempVisitorData = localStorage.getItem(myConstant.visitorDataKey);
+			if (tempVisitorData != null && JSON.parse(tempVisitorData).nickName == myConstant.userName) {
+				//this.$message.info("认证成功..")
+				this.showHidenButton = true
+			}
+
 			let self = this;
 			let code = 0;
 			let code2 = 0;
@@ -65,6 +73,7 @@
 		},
 		data() {
 			return {
+				showHidenButton: false,
 				search: {
 					//placeholder: "ctrl+shift+f/enter",
 					placeholder: "搜索框未营业..",

--
Gitblit v1.9.1