- 企业微信中使用小程序tensorflow插件闪退?
就一个空白测试页面,只引用了tensorflow,在微信小程序中一切正常,但是在企业微信中会直接闪退 import { View } from '@tarojs/components'; import Taro, { requirePlugin } from '@tarojs/taro'; import * as webgl from '@tensorflow/tfjs-backend-webgl'; import * as tf from '@tensorflow/tfjs-core'; import React from 'react'; import { fetchFunc, setWechatFetch } from 'fetch-wechat'; setWechatFetch(false); export default class Test extends React.Component { componentDidMount(): void { const tfjsPlugin = requirePlugin('tfjsPlugin'); Taro.setInnerAudioOption({ obeyMuteSwitch: false, }); tfjsPlugin.configPlugin({ fetchFunc: fetchFunc(), tf, webgl, canvas: Taro.createOffscreenCanvas(), }); } render() { return <View></View>; } }
2023-06-09 - 企业微信打开横屏页面,摄像头画面上下颠倒
用企业微信打开横屏页面,摄像头画面上下颠倒
2023-02-03