Commit 40ae8be9 by zhujian

fix

parent 20415cc3
......@@ -12,7 +12,10 @@ import Platform from '@/common/js/platform';
import User from '@/common/js/user';
import Service from '@/common/js/service';
console.log(wx.agentConfig,' console.log(wx.agentConfig) ')
var hm = document.createElement('script');
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 {
static initConfig(params = { isAgentConfig: false, url: '' }) {
......
......@@ -53,12 +53,7 @@
</head>
<body>
<script>
setTimeout(()=>{
if(!wx.agentConfig){
window.location.reload()
}
},100)
</script>
<noscript>You need to enable JavaScript to run this app.</noscript>
<div id="root"></div>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment