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

renderjs 的使用相关问题 #5341

Open
smile-alive opened this issue Mar 14, 2025 · 0 comments
Open

renderjs 的使用相关问题 #5341

smile-alive opened this issue Mar 14, 2025 · 0 comments

Comments

@smile-alive
Copy link

smile-alive commented Mar 14, 2025

发行方式

App

具体平台

ios18.2

iPhone 13 Pro

开发环境

macOS

项目创建方式

CLI命令行

依赖版本

"@dcloudio/uni-app": "3.0.0-4020420240722002",
"@dcloudio/uni-app-harmony": "3.0.0-4020420240722002",
"@dcloudio/uni-app-plus": "3.0.0-4020420240722002",
"@dcloudio/uni-components": "3.0.0-4020420240722002",
"@dcloudio/uni-h5": "3.0.0-4020420240722002",
"@dcloudio/uni-mp-alipay": "3.0.0-4020420240722002",
"@dcloudio/uni-mp-baidu": "3.0.0-4020420240722002",
"@dcloudio/uni-mp-jd": "3.0.0-4020420240722002",
"@dcloudio/uni-mp-kuaishou": "3.0.0-4020420240722002",
"@dcloudio/uni-mp-lark": "3.0.0-4020420240722002",
"@dcloudio/uni-mp-qq": "3.0.0-4020420240722002",
"@dcloudio/uni-mp-toutiao": "3.0.0-4020420240722002",
"@dcloudio/uni-mp-weixin": "3.0.0-4020420240722002",
"@dcloudio/uni-mp-xhs": "3.0.0-4020420240722002",
"@dcloudio/uni-quickapp-webview": "3.0.0-4020420240722002",
"@dcloudio/uts-darwin-x64": "^3.0.0-alpha-3040820220424005",

问题描述

在使用renderjs遇到如下问题

Image

问题一
renderjs 中逻辑层和视图层的交互问题,根据文档上提供的echart demo,只能简单了解到逻辑层操作视图层只能通过props change:props 的方式,这种情况会导致视图层的函数会初始化调用一次,有什么办法可以避免初始化时的无用调用

Image

问题二
使用fetch-event-fetch-event-source请求接口,真机调试出下如下error

Image

重现步骤

如上

期望行为

逻辑层直接调用视图层的方法

实际行为

No response

截图或录屏

No response

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant