Skip to content

Skyline渲染模式重新进界面wxs模块中数据不初始化 #209

@202225feng

Description

@202225feng

发现个使用Skyline引擎时会出现的问题。做了一个点击计数的界面,使用Skyline后出现异常。原本WebView渲染重新进界面计数器归零,用Skyline渲染重新进界面次数保留。
代码片段连接:https://developers.weixin.qq.com/s/Bjb9iQmx7BUP
代码截图:
Wxml:
image
Wxs:
image
Js:
image
跳转到计数界面,点几下计数,反回初始界面再跳转到计数界面。运行结果:
WebView渲染:
微信截图_20241010181243
Skyline渲染:
微信截图_20241010181254
js中的数据是都归零的。原本用WebView引擎时wxs模块中的全局变量是归零的,只有Skyline引擎下没有归零。

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions