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

h5程序在钉钉浏览器中,跳转页面不切换标题。 #11855

Closed
bigpigOne opened this issue May 28, 2022 · 3 comments
Closed

h5程序在钉钉浏览器中,跳转页面不切换标题。 #11855

bigpigOne opened this issue May 28, 2022 · 3 comments
Labels
enhancement New feature or request F-react Framework - React T-dd T-h5 Target - 编译到 H5 V-3 Version - 3.x
Milestone

Comments

@bigpigOne
Copy link

相关平台

H5

浏览器版本: 钉钉内置浏览器
使用框架: React

复现步骤

两个不同标题的页面互相切换

期望结果

页面切换时标题切换

实际结果

页面切换时标题不切换,需要调用钉钉的jsapi才可以更换标题

环境信息

 Taro v3.4.1


  Taro CLI 3.4.1 environment info:
    System:
      OS: Windows 10
    Binaries:
      Node: 14.18.1 - D:\Program Files\nodejs\node.EXE
      Yarn: 1.22.17 - C:\Users\yksw1\AppData\Roaming\npm\yarn.CMD
      npm: 6.14.15 - D:\Program Files\nodejs\npm.CMD
@taro-bot2 taro-bot2 bot added F-react Framework - React T-h5 Target - 编译到 H5 V-3 Version - 3.x labels May 28, 2022
@ZakaryCode
Copy link
Contributor

这里不是 h5 规划内的事情,但是或许我们可以考虑适配这里,给开发者更平滑的体验

@ZakaryCode
Copy link
Contributor

ZakaryCode commented Jul 25, 2022

该特性在 3.5+ 支持,为了避免冗余代码默认关闭,需要通过配置环境变量开启,参考如下:

// config/prod.js
module.exports = {
  env: {
    NODE_ENV: '"production"',
    SUPPORT_DINGTALK_NAVIGATE: '"enable"'
  },
// ...
}

@oliver34
Copy link

3.5.0 支持吗

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request F-react Framework - React T-dd T-h5 Target - 编译到 H5 V-3 Version - 3.x
Projects
Archived in project
Development

No branches or pull requests

3 participants