Brigida Cronin
Brigida Cronin
react-native-gesture-handler v2.13.4 iOS v17.0 已修复,当我用option+mouse进行缩放,因为两个触点的中心,并没有发生移动,所以drag不会触发,当我用alt+mouse放置一个偏移的点,进行两个点缩放时,拖拽是生效的
code is this ```tsx // -------------------svg拖拽相关逻辑----------------------- const dragGesture = Gesture.Pan() .onStart(_e => {}) .onUpdate(e => { const x = start.value.x + e.translationX; const y = start.value.y + e.translationY; offset.value =...
```js // ============= paths ============= "/base-server/api/assetsUsageRecord/{id}": { "get": { "tags": [ "assets-usage-record-api" ], "summary": "get", "operationId": "getUsingGET_1", "consumes": [ "application/json" ], "produces": [ "application/json" ], "parameters": [ { "name": "id",...
找到原因了,我的是因为这个报错 ```js "produces": [ "application/json" ] ``` 改成以下即可 ```js "produces": [ "*/*" ], ``` 生成的mock文件没有返回值,都是空对象 `{}`
我试的不行,报错: TypeError: Cannot read property 'fetch' of undefined
对,小程序环境没有原生的fetch,umi-request里面使用了第三方的polyfill,但是挂载fetch挂错了对象,如果改源码,直接用wx.request替换比较合适,做一些字段兼容对接就可以了,如果作者能兼容下小程序就更好了,哈哈哈~
我尝试着改了 /node_modules/isomorphic-fetch/fetch-npm-browserify.js // module.exports = self.fetch.bind(self); module.exports = globalThis.fetch.bind(globalThis); 发现报错没了,不知道有没有其他问题