现在的方式
import Test from './children/test.vue'
....
{
path: '',
name: 'emptyView123123123123',
component: C2,
children: [
{
path: '',
name: 'test',
component: Test
}
]
}
想要实现的方式
//http 请求后端获取数据
pagesource = getpagesouce('test')
...
children: [
{
path: '',
name: 'test',
component: Test
}
]
或者使用 pagesource new vue 的方式