From cbcb007517b26c1662ced702a5de2a826c996589 Mon Sep 17 00:00:00 2001 From: LittleSheep Date: Sat, 6 Apr 2024 01:23:55 +0800 Subject: [PATCH] :sparkles: Security page --- src/components/chat/ChatEditor.vue | 4 + src/layouts/settings.vue | 3 +- src/router/settings.ts | 5 + src/views/users/me/security.vue | 270 +++++++++++++++++++++++++++++ 4 files changed, 281 insertions(+), 1 deletion(-) create mode 100644 src/views/users/me/security.vue diff --git a/src/components/chat/ChatEditor.vue b/src/components/chat/ChatEditor.vue index b2ad60b..11dfa26 100644 --- a/src/components/chat/ChatEditor.vue +++ b/src/components/chat/ChatEditor.vue @@ -171,6 +171,8 @@ watch( (val) => { if (val) { data.value.reply_id = val.id + } else { + data.value.reply_id = null } } ) @@ -180,6 +182,8 @@ watch( (val) => { if (val) { data.value = val + } else { + resetEditor() } } ) diff --git a/src/layouts/settings.vue b/src/layouts/settings.vue index b95944a..589daa2 100644 --- a/src/layouts/settings.vue +++ b/src/layouts/settings.vue @@ -1,6 +1,6 @@