refactor(pages): 将页面配置从route标签迁移到definePage宏
统一使用definePage宏配置页面样式和类型,移除冗余的route标签 更新vscode代码片段模板以匹配新的配置方式 简化pages.json中的页面配置
This commit is contained in:
@@ -1,15 +1,12 @@
|
||||
<route lang="jsonc" type="page">
|
||||
{
|
||||
"layout": "default",
|
||||
"style": {
|
||||
"navigationBarTitleText": "分包页面"
|
||||
}
|
||||
}
|
||||
</route>
|
||||
|
||||
<script lang="ts" setup>
|
||||
// code here
|
||||
import RequestComp from './components/request.vue'
|
||||
|
||||
definePage({
|
||||
style: {
|
||||
navigationBarTitleText: '分包页面',
|
||||
},
|
||||
})
|
||||
</script>
|
||||
|
||||
<template>
|
||||
|
||||
Reference in New Issue
Block a user