-
Notifications
You must be signed in to change notification settings - Fork 7
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
Blank window after reloading page #3
Comments
Hi, @Lothindir ! Thanks for posting the issue. It is expected behavior.
If you want to implement
See also: electron/electron#11895 |
Plus, you should change here vue-electron-typescript-quickstart/src.mainproc/main.ts Lines 32 to 54 in d450cbb
|
Hi, I want to start hot loading. How do I start it? I used this for the first time. @Lothindir |
Hey @dengyushuai, do you want to use it for developpement or for production purposes ?
|
Hi @Lothindir,
When you reloading, current location of page have already changed to root directory by Vue Router. You can add path conversion ( vue-electron-typescript-quickstart/src.mainproc/main.ts Lines 44 to 49 in e44daa3
If you should use multiple entry points, try to change baseUrl of Vue CLI config for each entry points.https://cli.vuejs.org/config/#vue-config-js Hi @dengyushuai, |
Thank you. Let me check again @Lothindir @shellyln |
Hello, I found an issue where the window goes blank after doing a Reload or a Force Reload.
Reproduction steps :
npm run build:dev
andnpm run build:mainproc
npm run start
Ctrl+R
orCtrl+Shift+R
(or clicking on View->Reload or Force Reload)Result :
The page goes blank, the html looks like this :
and the console outputs an error :
chromewebdata/:1 Not allowed to load local resource: file:///C:/
The only way to (temporary) resolve the problem is to close and re-open the app.
The text was updated successfully, but these errors were encountered: