refactor(pages): 将页面配置从route标签迁移到definePage宏

统一使用definePage宏配置页面样式和类型,移除冗余的route标签
更新vscode代码片段模板以匹配新的配置方式
简化pages.json中的页面配置
This commit is contained in:
feige996
2025-08-28 16:05:25 +08:00
parent 211aef2254
commit dbe3e67dfe
10 changed files with 57 additions and 96 deletions

View File

@@ -19,16 +19,12 @@
"scope": "vue",
"prefix": "v3",
"body": [
"<route lang=\"jsonc\" type=\"page\">",
"{",
" \"layout\": \"default\",",
" \"style\": {",
" \"navigationBarTitleText\": \"$1\"",
" }",
"}",
"</route>\n",
"<script lang=\"ts\" setup>",
"//$2",
"definePage({",
" style: {",
" navigationBarTitleText: '$1',",
" },",
"})",
"</script>\n",
"<template>",
" <view class=\"\">$3</view>",