Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
X
xiaomai-cloud-class-web
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
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
xiaomai-cloud-class
xiaomai-cloud-class-web
Commits
55c978bb
Commit
55c978bb
authored
Aug 04, 2021
by
zhujian
Browse files
Options
Browse Files
Download
Plain Diff
fix:rtyuiopk
parents
ce1377bb
bc1e34d2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
4 deletions
+4
-4
src/common/js/wechatApi.js
+1
-2
src/modules/root/App.tsx
+3
-2
No files found.
src/common/js/wechatApi.js
View file @
55c978bb
...
@@ -29,7 +29,6 @@ export default class WechatApi {
...
@@ -29,7 +29,6 @@ export default class WechatApi {
signature
:
res
.
signature
,
// 必填,签名,见 附录-JS-SDK使用权限签名算法
signature
:
res
.
signature
,
// 必填,签名,见 附录-JS-SDK使用权限签名算法
jsApiList
:
[
'chooseImage'
,
'shareToExternalContact'
,
'selectExternalContact'
,
'selectEnterpriseContact'
],
jsApiList
:
[
'chooseImage'
,
'shareToExternalContact'
,
'selectExternalContact'
,
'selectEnterpriseContact'
],
}).
then
(()
=>
{
}).
then
(()
=>
{
if
(
params
.
isAgentConfig
)
{
return
new
Promise
(
async
(
resolve
,
reject
)
=>
{
return
new
Promise
(
async
(
resolve
,
reject
)
=>
{
Service
.
Hades
(
'anon/hades/getWxWorkJSAPISignature'
,
{
Service
.
Hades
(
'anon/hades/getWxWorkJSAPISignature'
,
{
storeId
:
User
.
getStoreId
(),
storeId
:
User
.
getStoreId
(),
...
@@ -56,7 +55,7 @@ export default class WechatApi {
...
@@ -56,7 +55,7 @@ export default class WechatApi {
});
});
});
});
});
});
}
})
})
...
...
src/modules/root/App.tsx
View file @
55c978bb
...
@@ -48,8 +48,9 @@ const App: React.FC = (props: any) => {
...
@@ -48,8 +48,9 @@ const App: React.FC = (props: any) => {
}
}
},
[])
},
[])
async
function
initWechatConfig
()
{
async
function
initWechatConfig
()
{
await
WechatApi
.
initConfig
({
isAgentConfig
:
true
,
url
:
window
.
location
.
href
.
split
(
'#'
)[
0
]
})
WechatApi
.
initConfig
({
isAgentConfig
:
true
,
url
:
window
.
location
.
href
.
split
(
'#'
)[
0
]
}).
then
(()
=>
{
console
.
log
(
'微信注册完成'
)
console
.
log
(
'注册完成'
)
})
}
}
useEffect
(()
=>
{
useEffect
(()
=>
{
getStorePermission
();
getStorePermission
();
...
...
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