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
1
Merge Requests
1
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
b0003835
Commit
b0003835
authored
Aug 12, 2021
by
zhujian
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Revert "fix"
This reverts commit
40ae8be9
.
parent
40ae8be9
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
5 deletions
+7
-5
src/common/js/wechatApi.js
+1
-4
src/index.html
+6
-1
No files found.
src/common/js/wechatApi.js
View file @
b0003835
...
@@ -12,10 +12,7 @@ import Platform from '@/common/js/platform';
...
@@ -12,10 +12,7 @@ import Platform from '@/common/js/platform';
import
User
from
'@/common/js/user'
;
import
User
from
'@/common/js/user'
;
import
Service
from
'@/common/js/service'
;
import
Service
from
'@/common/js/service'
;
var
hm
=
document
.
createElement
(
'script'
);
console
.
log
(
wx
.
agentConfig
,
' console.log(wx.agentConfig) '
)
hm
.
src
=
'https://open.work.weixin.qq.com/wwopen/js/jwxwork-1.0.0.js'
;
var
s
=
document
.
getElementsByTagName
(
'script'
)[
0
];
s
.
parentNode
.
insertBefore
(
hm
,
s
);
export
default
class
WechatApi
{
export
default
class
WechatApi
{
static
initConfig
(
params
=
{
isAgentConfig
:
false
,
url
:
''
})
{
static
initConfig
(
params
=
{
isAgentConfig
:
false
,
url
:
''
})
{
...
...
src/index.html
View file @
b0003835
...
@@ -53,7 +53,12 @@
...
@@ -53,7 +53,12 @@
</head>
</head>
<body>
<body>
<script>
<script>
setTimeout
(()
=>
{
if
(
!
wx
.
agentConfig
){
window
.
location
.
reload
()
}
},
100
)
</script>
</script>
<noscript>
You need to enable JavaScript to run this app.
</noscript>
<noscript>
You need to enable JavaScript to run this app.
</noscript>
<div
id=
"root"
></div>
<div
id=
"root"
></div>
...
...
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