feat(pages): 不加route block 也会自动注册到页面
This commit is contained in:
parent
a1d3cf3442
commit
e6354bdade
@ -42,6 +42,10 @@
|
||||
"navigationBarTitleText": "我才是标题"
|
||||
}
|
||||
},
|
||||
{
|
||||
"path": "pages/demo/index",
|
||||
"type": "page"
|
||||
},
|
||||
{
|
||||
"path": "pages/my/index",
|
||||
"type": "page",
|
||||
|
9
src/pages/demo/index.vue
Normal file
9
src/pages/demo/index.vue
Normal file
@ -0,0 +1,9 @@
|
||||
<template>
|
||||
<view>
|
||||
<view>demo</view>
|
||||
<view>测试是否会自动引入到pages,发现会</view>
|
||||
<view>就是不加route-block也会自己引入到pages</view>
|
||||
<view>得到类似如下的配置</view>
|
||||
<view>{ "path": "pages/demo/index", "type": "page" },</view>
|
||||
</view>
|
||||
</template>
|
1
uni-pages.d.ts
vendored
1
uni-pages.d.ts
vendored
@ -5,6 +5,7 @@
|
||||
|
||||
interface NavigateToOptions {
|
||||
url: "pages/index/index" |
|
||||
"pages/demo/index" |
|
||||
"pages/my/index" |
|
||||
"pages/throughout/index" |
|
||||
"pages/index/components/demo";
|
||||
|
Loading…
x
Reference in New Issue
Block a user