Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
M
mongo-ui
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
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
ui
mongo-ui
Commits
c64e118a
Commit
c64e118a
authored
Sep 02, 2020
by
郝聪敏
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'feature/rm_debug' into 'master'
fix: 去掉wx debug See merge request
!204
parents
1b321f9d
f13ccfa4
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
wxJsSdk.js
src/service/wxJsSdk.js
+2
-2
No files found.
src/service/wxJsSdk.js
View file @
c64e118a
...
...
@@ -27,7 +27,7 @@ export async function setShare({
});
const
{
appId
,
timestamp
,
nonceStr
,
signature
}
=
res
;
wx
.
config
({
debug
:
tru
e
,
// 开启调试模式,调用的所有api的返回值会在客户端alert出来,若要查看传入的参数,可以在pc端打开,参数信息会通过log打出,仅在pc端时才会打印。
debug
:
fals
e
,
// 开启调试模式,调用的所有api的返回值会在客户端alert出来,若要查看传入的参数,可以在pc端打开,参数信息会通过log打出,仅在pc端时才会打印。
appId
,
// 必填,公众号的唯一标识,填自己的!
timestamp
,
// 必填,生成签名的时间戳,刚才接口拿到的数据
nonceStr
,
// 必填,生成签名的随机串
...
...
@@ -72,7 +72,7 @@ export function checkOpenId() {
const
openId
=
localStorage
.
get
(
"
openId
"
);
const
_param
=
parseSearch
(
window
.
location
.
href
);
const
local
=
window
.
location
.
href
;
console
.
log
(
!
openId
,
isWeixinBrower
,
!
_param
.
code
,
window
.
location
.
href
);
//
console.log(!openId, isWeixinBrower, !_param.code, window.location.href);
if
(
!
openId
&&
isWeixinBrower
&&
!
_param
.
code
)
{
var
nextPage
=
document
.
createElement
(
"
a
"
);
nextPage
.
setAttribute
(
...
...
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