From 3c71cc74e6dd5f1015329c64e11e8ec1cd7a97c1 Mon Sep 17 00:00:00 2001
From: inleft <inleft@qq.com>
Date: Wed, 31 Aug 2022 18:11:16 +0800
Subject: [PATCH] 新增编辑页 日志列表接口

---
 src/components/fixed/header.vue |   20 +++++++++++++++-----
 1 files changed, 15 insertions(+), 5 deletions(-)

diff --git a/src/components/fixed/header.vue b/src/components/fixed/header.vue
index 3103d65..3c7566f 100644
--- a/src/components/fixed/header.vue
+++ b/src/components/fixed/header.vue
@@ -3,10 +3,11 @@
 		<a-col v-bind="showSmall">
 			<div class="menu">
 				<router-link to="/">Home</router-link>
-				<router-link to="/main2">乐谱搜索</router-link>
 				<router-link to="/comment">碎碎念</router-link>
 				<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,8 +73,10 @@
 		},
 		data() {
 			return {
+				showHidenButton: false,
 				search: {
-					placeholder: "ctrl+shift+f/enter",
+					//placeholder: "ctrl+shift+f/enter",
+					placeholder: "搜索框未营业..",
 					// allowClear: true,
 					// autoFocus: true,
 					backfill: true,
@@ -116,9 +126,9 @@
 				console.log("补全..");
 			},
 			onSelect(value) {
-				console.log('回车', value);
-				this.$message.info("更多功能..敬请期待")
-				this.$message.info("回车,内容为" + value)
+				// console.log('回车', value);
+				this.$message.info("这个功能会等到内容足够多的时候再打开..")
+				// this.$message.info("回车,内容为" + value)
 			},
 			onChange(value) {
 				console.log('修改', value);

--
Gitblit v1.9.1