Revert "build: lang="json5" 是默认值,不用写"
This reverts commit a95028f608a2b5788c2b26e17f3526f1126f01fe.
This commit is contained in:
parent
a95028f608
commit
fd402c5b58
2
.vscode/vue3.code-snippets
vendored
2
.vscode/vue3.code-snippets
vendored
@ -20,7 +20,7 @@
|
||||
"scope": "vue",
|
||||
"prefix": "v3",
|
||||
"body": [
|
||||
"<route type=\"page\">",
|
||||
"<route lang=\"json5\" type=\"page\">",
|
||||
"{",
|
||||
" style: { navigationBarTitleText: '$1' },",
|
||||
"}",
|
||||
|
@ -1,5 +1,5 @@
|
||||
<!-- type=home|page,默认为page。这里使用 type="home" 申明为首页,其他页面不需要设置 -->
|
||||
<route type="home">
|
||||
<!-- 使用 type="home" 属性设置首页,其他页面不需要设置,默认为page;推荐使用json5,更强大,且允许注释 -->
|
||||
<route lang="json5" type="home">
|
||||
{
|
||||
style: {
|
||||
navigationStyle: 'custom',
|
||||
|
@ -50,9 +50,8 @@ export default ({ command, mode }) => {
|
||||
plugins: [
|
||||
UniPages({
|
||||
exclude: ['**/components/**/**.*'],
|
||||
// routeBlockLang: 'json5',
|
||||
// homePage: 'pages/index/index',
|
||||
subPackages: ['src/pages-sub'], // 是一个数组,可以设置多个
|
||||
homePage: 'pages/index/index',
|
||||
subPackages: ['src/pages-sub'],
|
||||
}),
|
||||
UniLayouts(),
|
||||
UniPlatform(),
|
||||
|
Loading…
x
Reference in New Issue
Block a user