Skip to content

A Q&A platform software for teams at any scales. Whether it's a community forum, help center, or knowledge management platform, you can always count on Apache Answer.

fix: replace share params shareUserId to share

shuai8534079687e6
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 = () => {