Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
C
corporate-culture-qd
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
王立鹏
corporate-culture-qd
Commits
4a441ffd
Commit
4a441ffd
authored
Jun 09, 2026
by
lijiabin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
【需求 22261】 feat: 修改分享链接相关
parent
b004ced8
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
1 deletions
+4
-1
index.ts
src/utils/wxUtil/index.ts
+4
-1
No files found.
src/utils/wxUtil/index.ts
View file @
4a441ffd
...
...
@@ -8,6 +8,9 @@ const DEFAULT_SHARE_DESC = '点击查看详情'
const
DEFAULT_SHARE_IMAGE
=
'https://res.mail.qq.com/node/ww/wwmng/style/images/index_share_logo$13c64306.png'
const
getCurrentShareUrl
=
()
=>
`https://open.weixin.qq.com/connect/oauth2/authorize?appid=ww42a2d34b42b8d721&redirect_uri=
${
location
.
href
}
&response_type=code&scope=snsapi_base&state=system#wechat_redirect`
interface
IShareWxOption
{
title
:
string
link
?:
string
...
...
@@ -28,7 +31,7 @@ export async function wxShare(option: IShareWxOption): Promise<IShareWxResult> {
{
title
:
option
.
title
||
DEFAULT_SHARE_TITLE
,
desc
:
option
.
desc
||
DEFAULT_SHARE_DESC
,
link
:
option
.
link
||
location
.
href
,
link
:
option
.
link
||
getCurrentShareUrl
()
,
imgUrl
:
option
.
imgUrl
||
DEFAULT_SHARE_IMAGE
,
},
function
(
res
:
IShareWxResult
)
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment