Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Taro.interceptors.logInterceptor 在真机上无效 #11576

Closed
yangjisen opened this issue Apr 3, 2022 · 2 comments · Fixed by #13733
Closed

Taro.interceptors.logInterceptor 在真机上无效 #11576

yangjisen opened this issue Apr 3, 2022 · 2 comments · Fixed by #13733
Labels
F-vue3 Framework - Vue 3 T-weapp Target - 编译到微信小程序 V-3 Version - 3.x
Milestone

Comments

@yangjisen
Copy link

相关平台

微信小程序

复现仓库

小程序基础库: 2.23.2
使用框架: Vue 3

复现步骤

Taro.addInterceptor(Taro.interceptors.logInterceptor)

期望结果

可以正常打印请求调试内容

实际结果

真机上无法打印,开发者工具可以打印

环境信息

  Taro CLI 3.4.4 environment info:
    System:
      OS: Windows 10
    Binaries:
      Node: 16.13.1 - C:\Program Files\nodejs\node.EXE
      Yarn: 1.22.10 - AppData\Roaming\npm\yarn.CMD
      npm: 8.3.0 - C:\Program Files\nodejs\npm.CMD

@taro-bot2 taro-bot2 bot added F-vue3 Framework - Vue 3 T-weapp Target - 编译到微信小程序 V-3 Version - 3.x labels Apr 3, 2022
@ko-yuki
Copy link

ko-yuki commented Dec 13, 2022

taro 3.5.6 版本
production环境
无论在真机还是模拟器上面都无法打印请求日志,官方文档默认配置是打开console的,也尝试过手动配置还是没有用
terser配置:https://github.com/terser/terser#compress-options
{ jsMinimizer: 'terser', terser: { enable: true, config: { compress: { drop_console: false } } } }

@zjjjjjjjjjjd
Copy link

从3.5更新到3.6就不行了

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
F-vue3 Framework - Vue 3 T-weapp Target - 编译到微信小程序 V-3 Version - 3.x
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants