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 || "" }}
-
-
+
@@ -221,15 +224,18 @@
-
-
-
-
-
-
+
@@ -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)
+}