Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
glsx
/
dj-scrm-wx-work-sop
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit fab57dfa
authored
Apr 05, 2022
by
前端
Browse Files
Options
Browse Files
Tag
Download
Plain Diff
Merge branch 'chenwq_dev_2.0.0' into 'master'
修复BUG See merge request
!13
2 parents
6ad154c2
bf50dac5
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
1 deletions
public/index.html
src/api/wxConfig.js
public/index.html
View file @
fab57df
...
@@ -19,7 +19,7 @@
...
@@ -19,7 +19,7 @@
</noscript>
</noscript>
<div
id=
"app"
></div>
<div
id=
"app"
></div>
<script
src=
"//res.wx.qq.com/open/js/jweixin-1.2.0.js"
></script>
<script
src=
"//res.wx.qq.com/open/js/jweixin-1.2.0.js"
></script>
<script
src=
"
https:
//open.work.weixin.qq.com/wwopen/js/jwxwork-1.0.0.js"
></script>
<script
src=
"//open.work.weixin.qq.com/wwopen/js/jwxwork-1.0.0.js"
></script>
<!-- 使用CDN加速的JS文件,配置在vue.config.js下 -->
<!-- 使用CDN加速的JS文件,配置在vue.config.js下 -->
<
% for (var i in htmlWebpackPlugin.options.cdn
&&
htmlWebpackPlugin.options.cdn.js) { %>
<
% for (var i in htmlWebpackPlugin.options.cdn
&&
htmlWebpackPlugin.options.cdn.js) { %>
<script
src=
"<%= htmlWebpackPlugin.options.cdn.js[i] %>"
></script>
<script
src=
"<%= htmlWebpackPlugin.options.cdn.js[i] %>"
></script>
...
...
src/api/wxConfig.js
View file @
fab57df
...
@@ -24,6 +24,8 @@ const WxConfig = {
...
@@ -24,6 +24,8 @@ const WxConfig = {
})
})
.
then
(
obj
=>
{
.
then
(
obj
=>
{
if
(
obj
)
{
if
(
obj
)
{
setTimeout
(()
=>
{
console
.
log
(
'wx.agentConfig:'
,
wx
.
agentConfig
)
wx
.
agentConfig
({
wx
.
agentConfig
({
corpid
:
obj
.
corpId
,
// 必填,企业微信的corpid,必须与当前登录的企业一致
corpid
:
obj
.
corpId
,
// 必填,企业微信的corpid,必须与当前登录的企业一致
agentid
:
obj
.
agentId
,
// 必填,企业微信的应用id (e.g. 1000247)
agentid
:
obj
.
agentId
,
// 必填,企业微信的应用id (e.g. 1000247)
...
@@ -40,6 +42,7 @@ const WxConfig = {
...
@@ -40,6 +42,7 @@ const WxConfig = {
reject
(
err
)
reject
(
err
)
}
}
})
})
},
500
)
}
else
{
}
else
{
Notify
(
'网络异常'
)
Notify
(
'网络异常'
)
}
}
...
...
Write
Preview
Markdown
is supported
Attach a file
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 post a comment