From 6330f3d90f4c7b659b599cc8636aee5102cc6090 Mon Sep 17 00:00:00 2001 From: silver-it Date: Thu, 25 Jul 2024 10:15:55 +0800 Subject: [PATCH] fix: eslint error --- .../chatroom/chat-mentions/RenderMessageWithMarkdown.js | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/frontend/views/containers/chatroom/chat-mentions/RenderMessageWithMarkdown.js b/frontend/views/containers/chatroom/chat-mentions/RenderMessageWithMarkdown.js index 7d4ea43f1..d17a02f65 100644 --- a/frontend/views/containers/chatroom/chat-mentions/RenderMessageWithMarkdown.js +++ b/frontend/views/containers/chatroom/chat-mentions/RenderMessageWithMarkdown.js @@ -37,10 +37,7 @@ const RenderMessageWithMarkdown: any = { for (const [key, value] of url.searchParams) { query[key] = value } - routerOptions.route = { path, query } - if (url.hash) { - routerOptions.route['hash'] = url.hash - } + routerOptions.route = { path, query, hash: url.hash } routerOptions.href = this.$router.resolve(routerOptions.route).href routerOptions.isInAppRouter = true }