@@ -44,7 +44,7 @@
},
"rules": {
"no-unused-vars": "off",
- " no-undef": "off"
+ "no-undef": "off"
}
"browserslist": [
@@ -49,9 +49,9 @@
<script>
+import './jssdk/bridgeClientImpl.uni'
import wf from "@/jssdk/wf";
import api from "@/api/api";
-import './jssdk/bridgeClientImpl.uni'
export default {
name: 'App',
@@ -66,4 +66,9 @@ function register(handlerName, callback) {
eventListeners[handlerName] = callback;
-init();
+if (uni.postMessage) {
+ console.log('init uni client')
+ init();
+} else {
+ console.log('not init uni client')
+}