From 39c14ed9bb62bae0c58336fdf501eac2975bc737 Mon Sep 17 00:00:00 2001 From: A1300399510 Date: Tue, 30 Jan 2024 19:08:34 +0800 Subject: [PATCH] no message --- app.vue | 6 +- pages/details/[id].vue | 127 ++++++++++++++++++++++++++++++++++------ pages/publish/index.vue | 8 +-- 3 files changed, 112 insertions(+), 29 deletions(-) diff --git a/app.vue b/app.vue index 4b31875..553f377 100644 --- a/app.vue +++ b/app.vue @@ -28,10 +28,10 @@ const isProduction = process.env.NODE_ENV === "production" // }) onMounted(() => { - // if (!isProduction) isNeedLogin.value = false - // else determineIsLogin() + if (!isProduction) isNeedLogin.value = false + else determineIsLogin() - determineIsLogin() + // determineIsLogin() // isNeedLogin.value = false // if (true) determineIsLogin() diff --git a/pages/details/[id].vue b/pages/details/[id].vue index 1bf46d6..c13b3a9 100644 --- a/pages/details/[id].vue +++ b/pages/details/[id].vue @@ -171,8 +171,11 @@ 讨论
{{ commentComments || "" }}
-
- +
+
+ + +
发送
@@ -213,7 +216,7 @@
举报
- +
@@ -221,15 +224,18 @@
- -
- -
+
+ +
- -
发送
+ + + +
+
取消
+
发送
+
-
@@ -265,7 +271,7 @@
举报
- +
-
+
@{{ ite?.reply?.nickname }}
{{ ite["content"] }}
@@ -282,7 +288,7 @@
发送
- + @@ -807,7 +813,7 @@ const openAnswerCommentsChild = (index, i) => { closeAnswerCommentsChild() if (i == null) commentList.value[index]["childState"] = true else commentList.value[index]["child"][i]["childState"] = true - commentInput.value = "" + // commentInput.value = "" } // 关闭 回答-评论 的子评论 @@ -1309,6 +1315,21 @@ let labelObj = { thread: "帖子", ask: "回答", } + +let postCommentFocusState = ref(false) + +const postInputRef = ref(null) + +const postCommentFocusBlur = () => { + const refref = postInputRef.value + setTimeout(() => { + postCommentFocusState.value = false + nextTick(() => { + let targetDom = refref.querySelector(".el-textarea__inner") + targetDom.style.height = "41px" + }) + }, 200) +}