You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@answer.apache.org by sh...@apache.org on 2024/08/06 07:56:41 UTC

(incubator-answer) branch feat/1.4.0/personal updated: fix: replace share params shareUserId to share

This is an automated email from the ASF dual-hosted git repository.

shuai pushed a commit to branch feat/1.4.0/personal
in repository https://gitbox.apache.org/repos/asf/incubator-answer.git


The following commit(s) were added to refs/heads/feat/1.4.0/personal by this push:
     new 6a6ed292 fix: replace share params shareUserId to share
6a6ed292 is described below

commit 6a6ed292adaa7d16550ce53a26e895c725d420a1
Author: shuai <li...@sifou.com>
AuthorDate: Tue Aug 6 15:56:30 2024 +0800

    fix: replace share params shareUserId to share
---
 ui/src/components/Share/index.tsx | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/ui/src/components/Share/index.tsx b/ui/src/components/Share/index.tsx
index 203a72d6..392d1fbd 100644
--- a/ui/src/components/Share/index.tsx
+++ b/ui/src/components/Share/index.tsx
@@ -46,7 +46,7 @@ const Index: FC<IProps> = ({ type, qid, aid, title }) => {
       ? `${BASE_ORIGIN}/questions/${qid}`
       : `${BASE_ORIGIN}/questions/${qid}/${aid}`;
   if (user.id) {
-    baseUrl = `${baseUrl}?shareUserId=${user.username}`;
+    baseUrl = `${baseUrl}?share=${user.username}`;
   }
 
   const closeShare = () => {