Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
R
RB_StrongestBrain_250520
Project
Project
Details
Activity
Releases
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
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
SparkProjects
RB_StrongestBrain_250520
Commits
bd70bc50
Commit
bd70bc50
authored
May 22, 2025
by
haiyoucuv
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
21
parent
bc8767ff
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
8 deletions
+7
-8
share.ts
src/utils/share.ts
+7
-8
No files found.
src/utils/share.ts
View file @
bd70bc50
...
@@ -4,8 +4,8 @@ import {
...
@@ -4,8 +4,8 @@ import {
callShare
,
callShare
,
Weixin
,
Weixin
,
}
from
"@spark/share"
}
from
"@spark/share"
/**
/**
* @description: 小程序跳转
* @description: 小程序跳转
* @param {*}
* @param {*}
...
@@ -20,7 +20,7 @@ import {
...
@@ -20,7 +20,7 @@ import {
export
function
isIos
()
{
export
function
isIos
()
{
return
navigator
.
userAgent
.
match
(
/iphone|ipod|ipad/gi
)
return
navigator
.
userAgent
.
match
(
/iphone|ipod|ipad/gi
)
}
}
/** 判断微信环境 */
/** 判断微信环境 */
export
function
isWeChat
()
{
export
function
isWeChat
()
{
const
ua
=
window
.
navigator
.
userAgent
.
toLowerCase
()
const
ua
=
window
.
navigator
.
userAgent
.
toLowerCase
()
...
@@ -29,7 +29,7 @@ import {
...
@@ -29,7 +29,7 @@ import {
/**
/**
* 初始化分享
* 初始化分享
*/
*/
export
async
function
onInitShare
(
cb
)
{
export
async
function
onInitShare
(
cb
?
)
{
await
start
([
Weixin
],
function
(
success
)
{
await
start
([
Weixin
],
function
(
success
)
{
console
.
log
(
"share result:----"
,
success
)
console
.
log
(
"share result:----"
,
success
)
cb
&&
cb
()
cb
&&
cb
()
...
@@ -83,7 +83,6 @@ import {
...
@@ -83,7 +83,6 @@ import {
}
}
});
});
}
}
\ No newline at end of file
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