链接跳转时重载(部分网站设定了不需要) #522
Replies: 9 comments
-
很奇怪,你这边有Mac的机器吗?我这边只有Mac的机器,在Safari以及Pake里面看是好的,初步猜测和window系统webview2浏览器有一定关系 |
Beta Was this translation helpful? Give feedback.
-
没有,我只有Windows和Android |
Beta Was this translation helpful? Give feedback.
-
我也碰到了同样的问题,同一个链接点击第二次的时候页面就刷新了,下面的代码会将 anchorElement.target 都改为 Pake/src-tauri/src/inject/event.js Line 144 in 3966df5 |
Beta Was this translation helpful? Give feedback.
-
我在想是不是 假如是self 我们就默认内部打开如何? |
Beta Was this translation helpful? Give feedback.
-
如果是 self 可以这样处理吧,但是现在链接点击后所有的链接都会被影响,不管是是站内链接还是站外链接。 是不是根据 target 区分下,外部链接都用浏览器打开,内部链接都默认内部打开,不更改 target 的值比较好? |
Beta Was this translation helpful? Give feedback.
-
我想说的不是内部还是外部打开的问题 |
Beta Was this translation helpful? Give feedback.
-
应该不是这里引起的,因为 target 模式就是 _self, 不过这里加不加都无所谓,我去干掉一下 |
Beta Was this translation helpful? Give feedback.
-
初步猜测和windows容器有关系,先转移到讨论组,后面大伙在那里讨论就好 |
Beta Was this translation helpful? Give feedback.
-
Search before asking
I searched in the issues and found nothing similar.
Pake version
newest
System version
win10 1909
Node.js version
win10 1909
Minimal reproduce step
[https://todo.zenkit.com/(https://todo.zenkit.com)
(理论上打包github也有这种问题)
What did you expect to see?
跟正常浏览器一样
What did you see instead?
跳转网页时重载
_2023_07_10_11_39_19_973.mp4
Anything else?
No response
Are you willing to submit a PR?
Beta Was this translation helpful? Give feedback.
All reactions