关于小程序中如何通过web-view跳转到外部链接
例如:
在h5中写了这个逻辑判断,在企微环境中可以正常打开,但是在企微小程序环境就打不开,而且报错:
Uncaught TypeError: Cannot read property 'navigateTo' of undefined
/pdsmb/js/app.js:2:619399 TypeError: Cannot read property 'navigateTo' of undefined
at openPersionDetail (https://applet.qiuer.net/pdsmb/chunk/6.js:1:3176)\n at openPeopelDetail (https://applet.qiuer.net/pdsmb/chunk/6.js:1:17528)\n at onClick (https://applet.qiuer.net/pdsmb/chunk/6.js:1:17813)\n at Object.Rb (https://applet.qiuer.net/pdsmb/js/app.js:2:599247)\n at Xb (https://applet.qiuer.net/pdsmb/js/app.js:2:599418)\n at Yb (https://applet.qiuer.net/pdsmb/js/app.js:2:618805)\n at Ze (https://applet.qiuer.net/pdsmb/js/app.js:2:618901)\n at se (https://applet.qiuer.net/pdsmb/js/app.js:2:619372)\n at https://applet.qiuer.net/pdsmb/js/app.js:2:625556\n at qn (https://applet.qiuer.net/pdsmb/js/app.js:2:708551)
在企微小程序代码如下:
怎么改?大佬求教