eros icon indicating copy to clipboard operation
eros copied to clipboard

跳转webview页面,title不起作用

Open theladderofsuccess opened this issue 7 years ago • 3 comments

Your questions.

  • this.$router.toWebView({}) 打开webview页面时,将 title 设置为了需要的名字,而跳转中会有一瞬间是这个名字,但页面加载出来后又会被webview页面的原有 title 所替代,达不到想要的效果,求解!

Environment.

  • Mobile model: mi 8
  • Mobile system: Android 9
  • Dev platform: darwin/windows/linux
  • Node: 8.x.x
  • Npm: 5.x.x

What do you think may be caused by the analysis of the problem.

Reappearance of the problem (It's best to have a screenshot).

theladderofsuccess avatar Dec 20 '18 08:12 theladderofsuccess

因为你打开的 html 被原有 title 替代了,貌似其他webview 也是这个逻辑吧

PerseveranceZ avatar Dec 21 '18 02:12 PerseveranceZ

@PerseveranceZ 大佬,如果想让目标页面的标题变成设置的title,应该怎么做/

theladderofsuccess avatar Dec 26 '18 09:12 theladderofsuccess

你webview 里面的页面的 title 不设置试试呢

PerseveranceZ avatar Dec 28 '18 08:12 PerseveranceZ