|
@@ -43,11 +43,16 @@
|
|
|
console.log('000000')
|
|
|
let url=constant.host()
|
|
|
window.parent.postMessage('/pages/index/index',url+'/mobile/pages/flow/flow')
|
|
|
- uni.webView.postMessage({
|
|
|
- data: {
|
|
|
- action: '/pages/index/index'
|
|
|
- }
|
|
|
- });
|
|
|
+ try {
|
|
|
+ uni.webView.postMessage({
|
|
|
+ data: {
|
|
|
+ action: '/pages/index/index'
|
|
|
+ }
|
|
|
+ });
|
|
|
+ } catch (error) {
|
|
|
+ console.warn('unipostMessage',error)
|
|
|
+ }
|
|
|
+
|
|
|
// uni.switchTab({
|
|
|
// url: '/pages/home/home'
|
|
|
// })
|