vue.js - Vue - 如何自定义到 vue.config.js 中定义的页面的路由?
问题描述
给定具有此设置的 vue.config.js 文件
pages: {
index: {
entry: 'src/main.js',
template: 'public/index.html',
filename: 'index.html'
},
otherpage: {
entry: 'src/other.js',
template: 'public/otherpage.html',
filename: 'otherpage.html'
}
}
我知道我可以使用这个 url: 导航到 otherpage.html 模板domain/otherpage.html
,但是如何使用类似的 url 访问它domain/other
?
任何帮助表示赞赏,谢谢!
解决方案
推荐阅读
- python - 大致等效的部分代码
- android - Android 4.3 中的 Android setcookie 和 setAcceptCookie 方法崩溃
- authentication - 如何在 Visual Studio 中配置我的 Nuget(私人)提要时启用登录选项
- r - 有条件地提取多个子字符串并使用 for 循环为每个子字符串返回一个值
- android - JetPack Jetifier 的 Android Crashlytics 问题
- python - 如何使用 pymongo 解析所有集合的数据
- ios - Stripe Radar 规则不适用于 Apple Pay 待授权
- msbuild - 全新安装时 GAC 缺少 netstandard.dll
- react-native-ios - 使用 iOS 模拟器,React Native 应用程序卡在空白屏幕上
- intellij-idea - IDEA编辑器中字符的宽度不一样