feat: 分端显示
This commit is contained in:
@@ -18,6 +18,37 @@ export default defineUniPages({
|
||||
'^wd-(.*)': 'wot-design-uni/components/wd-$1/wd-$1.vue',
|
||||
},
|
||||
},
|
||||
// tabbar 的配置统一在 “./src/tabbar/config.ts” 文件中
|
||||
// tabbar 配置
|
||||
tabBar: tabBar as any,
|
||||
|
||||
// 分包配置
|
||||
subPackages: [
|
||||
{
|
||||
root: 'pagesMerchant',
|
||||
pages: [
|
||||
{ path: 'dashboard/index', style: { navigationBarTitleText: '商家工作台' } },
|
||||
{ path: 'order/list', style: { navigationBarTitleText: '订单管理' } },
|
||||
{ path: 'goods/list', style: { navigationBarTitleText: '商品管理' } },
|
||||
{ path: 'finance/index', style: { navigationBarTitleText: '财务中心' } },
|
||||
{ path: 'me/index', style: { navigationBarTitleText: '商家中心' } },
|
||||
],
|
||||
},
|
||||
{
|
||||
root: 'pagesBank',
|
||||
pages: [
|
||||
{ path: 'dashboard/index', style: { navigationBarTitleText: '银行工作台' } },
|
||||
{ path: 'audit/list', style: { navigationBarTitleText: '审核列表' } },
|
||||
{ path: 'customer/list', style: { navigationBarTitleText: '客户管理' } },
|
||||
{ path: 'me/index', style: { navigationBarTitleText: '银行中心' } },
|
||||
],
|
||||
},
|
||||
],
|
||||
|
||||
// 分包预下载配置
|
||||
preloadRule: {
|
||||
'pages/login/index': {
|
||||
network: 'all',
|
||||
packages: ['pagesMerchant', 'pagesBank'],
|
||||
},
|
||||
},
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user