How to solve pages more than one?
heliping opened this issue · 3 comments
heliping commented
Dear all,
I use this tool for desk app, very uesful.
but the demo only has one page as the index.html. actually, the normal app used more than one.
I guess the way is use menu to route for different pages.
But how to do? any ways?
asticode commented
The simplest solution is to add a menu directly in your HTML/JS app.
Otherwise you can use a go-astilectron
menu and use the OnClick
attribute to send a message to your JS so that it changes page.
heliping commented
Is there any demo for this function?
heliping commented
I used it with vue, can package successful.
but when using sendmessage, vue report: "astilectron" not defined.