Revert "build: lang="json5" 是默认值,不用写"

This reverts commit a95028f608a2b5788c2b26e17f3526f1126f01fe.
This commit is contained in:
Burt 2024-01-24 14:13:45 +08:00
parent a95028f608
commit fd402c5b58
3 changed files with 5 additions and 6 deletions

View File

@ -20,7 +20,7 @@
"scope": "vue", "scope": "vue",
"prefix": "v3", "prefix": "v3",
"body": [ "body": [
"<route type=\"page\">", "<route lang=\"json5\" type=\"page\">",
"{", "{",
" style: { navigationBarTitleText: '$1' },", " style: { navigationBarTitleText: '$1' },",
"}", "}",

View File

@ -1,5 +1,5 @@
<!-- type=home|page默认为page这里使用 type="home" 申明为首页其他页面不需要设置 --> <!-- 使用 type="home" 属性设置首页其他页面不需要设置默认为page推荐使用json5更强大且允许注释 -->
<route type="home"> <route lang="json5" type="home">
{ {
style: { style: {
navigationStyle: 'custom', navigationStyle: 'custom',

View File

@ -50,9 +50,8 @@ export default ({ command, mode }) => {
plugins: [ plugins: [
UniPages({ UniPages({
exclude: ['**/components/**/**.*'], exclude: ['**/components/**/**.*'],
// routeBlockLang: 'json5', homePage: 'pages/index/index',
// homePage: 'pages/index/index', subPackages: ['src/pages-sub'],
subPackages: ['src/pages-sub'], // 是一个数组,可以设置多个
}), }),
UniLayouts(), UniLayouts(),
UniPlatform(), UniPlatform(),