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

vue3 setup 函数 触发两次 #11903

Closed
gowago opened this issue Jun 8, 2022 · 2 comments
Closed

vue3 setup 函数 触发两次 #11903

gowago opened this issue Jun 8, 2022 · 2 comments
Labels
F-vue3 Framework - Vue 3 T-h5 Target - 编译到 H5 V-3 Version - 3.x

Comments

@gowago
Copy link

gowago commented Jun 8, 2022

相关平台

H5

浏览器版本: Chrome 100
使用框架: Vue 3

复现步骤

1 A页面路由跳转到b页面
2 B页面重定向到A页面

期望结果

setup 函数触发一次

实际结果

<script setup> A页面setup内函数加载两次

环境信息

Taro CLI 3.4.7 environment info:
System:
OS: Windows 10
Binaries:
Node: 16.15.0 - D:\Program Files\nodejs\node.EXE
Yarn: 1.22.17 - C:\Users\Administrator\AppData\Roaming\npm\yarn.CMD
npm: 8.5.5 - D:\Program Files\nodejs\npm.CMD

@taro-bot2 taro-bot2 bot added F-vue3 Framework - Vue 3 T-h5 Target - 编译到 H5 V-3 Version - 3.x labels Jun 8, 2022
@Chen-jj
Copy link
Contributor

Chen-jj commented Jun 16, 2022

@gowago 麻烦提供一下可复现 demo

@ZakaryCode
Copy link
Contributor

缺少可复现问题信息,issue 将被关闭

@ZakaryCode ZakaryCode moved this to Done in H5 Apr 10, 2023
@ZakaryCode ZakaryCode added this to H5 Apr 10, 2023
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-h5 Target - 编译到 H5 V-3 Version - 3.x
Projects
Archived in project
Development

No branches or pull requests

3 participants