feat: 根据 cqh 的提示优化代码
This commit is contained in:
parent
0f467eefdc
commit
5d6b158d0d
4
.gitignore
vendored
4
.gitignore
vendored
@ -27,3 +27,7 @@ stats.html
|
||||
auto-import.d.ts
|
||||
# unplugin-vue-components 生成的类型文件
|
||||
components.d.ts
|
||||
src/pages.json
|
||||
uni-pages.d.ts
|
||||
src/pages.json
|
||||
src/manifest.json
|
||||
|
6
.vscode/settings.json
vendored
6
.vscode/settings.json
vendored
@ -24,6 +24,12 @@
|
||||
"[vue]": {
|
||||
"editor.defaultFormatter": "esbenp.prettier-vscode"
|
||||
},
|
||||
"[typescript]": {
|
||||
"editor.defaultFormatter": "esbenp.prettier-vscode"
|
||||
},
|
||||
"[jsonc]": {
|
||||
"editor.defaultFormatter": "esbenp.prettier-vscode"
|
||||
},
|
||||
// 配置语言的文件关联
|
||||
"files.associations": {
|
||||
"pages.json": "jsonc", // pages.json 可以写注释
|
||||
|
11
src/pages-sub/niubi/index.vue
Normal file
11
src/pages-sub/niubi/index.vue
Normal file
@ -0,0 +1,11 @@
|
||||
<template>
|
||||
<div class="niubi">niubi</div>
|
||||
</template>
|
||||
|
||||
<script lang="ts" setup></script>
|
||||
|
||||
<style lang="scss" scoped>
|
||||
.niubi {
|
||||
background-color: red;
|
||||
}
|
||||
</style>
|
@ -59,6 +59,8 @@ export default ({ command, mode }) => {
|
||||
exclude: hideDemoPages
|
||||
? ['**/components/**/**.*', '**/demo/**/**.*']
|
||||
: ['**/components/**/**.*'],
|
||||
homePage: 'pages/index/index',
|
||||
subPackages: ['src/pages-sub'],
|
||||
}),
|
||||
UniLayouts(),
|
||||
UniPlatform(),
|
||||
|
Loading…
x
Reference in New Issue
Block a user