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

vuex模板初始化的项目打包h5无法正常运行 #7129

Closed
zcfan opened this issue Jul 21, 2020 · 1 comment · Fixed by #7139
Closed

vuex模板初始化的项目打包h5无法正常运行 #7129

zcfan opened this issue Jul 21, 2020 · 1 comment · Fixed by #7139
Assignees
Labels
F-vue2 Framework - Vue 2 P-0 Critical, patch T-h5 Target - 编译到 H5 V-3 Version - 3.x
Projects
Milestone

Comments

@zcfan
Copy link
Contributor

zcfan commented Jul 21, 2020

相关平台

H5

浏览器版本: Microsoft Edge 84.0.522.40 或其他主流浏览器
使用框架: Vue

复现步骤

新建vuex项目即可,无需另外修改,因此未提供重现链接

  1. taro init,选择 vuex 模板
  2. yarn run build:h5
  3. http-server dist
  4. 浏览器访问运行的网站,界面显示有问题,且点击等交互无效

补充:yarn run dev:h5 正常

期望结果

build:h5 打包的页面应该和 dev:h5 预览时表现一致

实际结果

build:h5 打包出的页面无法正常运行:

  • 样式不正常
  • 点击等事件无效

环境信息

� Taro v3.0.5


  Taro CLI 3.0.5 environment info:
    System:
      OS: Windows 10
    Binaries:
      Node: 12.16.3 - C:\Program Files\nodejs\node.EXE
      Yarn: 1.22.4 - C:\Program Files (x86)\Yarn\bin\yarn.CMD
      npm: 6.14.4 - C:\Program Files\nodejs\npm.CMD
@remember-5
Copy link

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
F-vue2 Framework - Vue 2 P-0 Critical, patch T-h5 Target - 编译到 H5 V-3 Version - 3.x
Projects
Archived in project
H5
  
Done
Development

Successfully merging a pull request may close this issue.

3 participants