页面类型
页面类型
routes.ts
配置的路由默认是页面类型
路由配置中添加类型:type: ESRouteType.ES_ROUTE_TYPE_PAGE
下面以index.vue
页面为例:
js
import index from "./views/index.vue";
const routes = [
{
path: '/index',
name: 'index',
component: index,
type: ESRouteType.ES_ROUTE_TYPE_PAGE
},
]
对话框类型
下面以index.vue
页面为例:
路由配置中添加类型:type: ESRouteType.ES_ROUTE_TYPE_DIALOG
js
import index from "./views/index.vue";
const routes = [
{
path: '/index',
name: 'index',
component: index,
type: ESRouteType.ES_ROUTE_TYPE_DIALOG
},
]