Svelte-Navigator的默认路线?
我正在使用Svelte -navigator来处理我的Svelte应用程序中的路由,并且我有一个问题,即访问我未定义的路由时,它仍然会加载标头和侧栏等(路由外) - 是否有一个设置默认路由的方法,以便在访问未定义的路由时,它可以重定向到主页等?
I'm using svelte-navigator to handle routing in my Svelte application, and I have the issue that when accessing a route that I have not defined, it still loads the header and sidebar etc (which are outside the routes) - Is there a way to set a default route, so that when accessing an undefined route, it can redirect to the home page etc?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
从文档
From the documentation