[Bug] 打包notion路由跳转时候整屏幕刷新的
Search before asking
Pake version
2.3.6
System version
macOS 14.3.1 (23D60)
Node.js version
v21.7.0
Minimal reproduce step
pake https://www.notion.so/ --name Notion --icon "https://www.notion.so/front-static/favicon.ico" --inject ./Notion\ Chinese.js
What did you expect to see?
期望可以正常使用notion, 不整页刷新
What did you see instead?
每次切换page都整页刷新了.
Anything else?
No response
Are you willing to submit a PR?
- [ ] I'm willing to submit a PR!
I was able to fix this for MacOS in src-tauri/src/inject/event.js:
const detectAnchorElementClick = (e) => {
const anchorElement = e.target.closest('a');
if (anchorElement && anchorElement.href) {
if (anchorElement.target !== '') anchorElement.target = '_self'; // <-- added this line to fix for MacOS
...
But it does not work for my app as Windows build via Github Actions. I am unable to debug the behavior in Windows because I do not find a way to enable the developer tools there. I tried to enable devtools like so: https://tauri.app/v1/guides/debugging/application/#:~:text=To%20enable%20the%20devtools%20in%20production%20builds Sadly, it has no effect. Does anybody know how to achieve this with Pake?
You can open this devtools using the local debugging of Pake code, or via the command line with pake-cli, and you're also more than welcome to submit pr for support!
Hi @tw93!
Maybe this is a misunderstanding. I am on MacOS and I cannot open devtools in the Windows build on another computer. I have no Windows environment to run npm run dev to locally debug there.