调整路由

This commit is contained in:
2026-02-26 15:49:57 +08:00
parent 44295232c6
commit 5ac300e4c5
2 changed files with 165 additions and 91 deletions

View File

@@ -453,410 +453,460 @@
"root": "pages/mall/admin", "root": "pages/mall/admin",
"pages": [ "pages": [
{ {
"path": "user/management/index", "path": "order-management",
"style": { "style": {
"navigationBarTitleText": "用户管理", "navigationBarTitleText": "订单管理",
"navigationStyle": "custom" "navigationStyle": "custom"
} }
},
{
"path": "product/product-management/index",
"style": {
"navigationBarTitleText": "商品管理",
"navigationStyle": "custom"
} }
]
}, },
{ {
"path": "order/list", "root": "pages/mall/admin/order",
"pages": [
{
"path": "list",
"style": { "style": {
"navigationBarTitleText": "订单列表", "navigationBarTitleText": "订单列表",
"navigationStyle": "custom" "navigationStyle": "custom"
} }
}, },
{ {
"path": "order/order-statistics/index", "path": "order-statistics/index",
"style": { "style": {
"navigationBarTitleText": "订单统计", "navigationBarTitleText": "订单统计",
"navigationStyle": "custom" "navigationStyle": "custom"
} }
}, },
{ {
"path": "order/order-configuration/index", "path": "order-configuration/index",
"style": { "style": {
"navigationBarTitleText": "订单配置", "navigationBarTitleText": "订单配置",
"navigationStyle": "custom" "navigationStyle": "custom"
} }
}, },
{ {
"path": "order/aftersales-order/index", "path": "aftersales-order/index",
"style": { "style": {
"navigationBarTitleText": "售后订单", "navigationBarTitleText": "售后订单",
"navigationStyle": "custom" "navigationStyle": "custom"
} }
}, },
{ {
"path": "order/write-off-records/index", "path": "write-off-records/index",
"style": { "style": {
"navigationBarTitleText": "核销记录", "navigationBarTitleText": "核销记录",
"navigationStyle": "custom" "navigationStyle": "custom"
} }
}
]
}, },
{ {
"path": "order-management", "root": "pages/mall/admin/product",
"pages": [
{
"path": "product-management/index",
"style": { "style": {
"navigationBarTitleText": "订单管理", "navigationBarTitleText": "商品管理",
"navigationStyle": "custom"
}
}
]
},
{
"root": "pages/mall/admin/user",
"pages": [
{
"path": "management/index",
"style": {
"navigationBarTitleText": "用户管理",
"navigationStyle": "custom" "navigationStyle": "custom"
} }
}, },
{ {
"path": "finance/record", "path": "statistics/index",
"style": {
"navigationBarTitleText": "财务管理",
"navigationStyle": "custom"
}
},
{
"path": "user/statistics/index",
"style": { "style": {
"navigationBarTitleText": "用户统计", "navigationBarTitleText": "用户统计",
"navigationStyle": "custom" "navigationStyle": "custom"
} }
}
]
}, },
{ {
"path": "subscription/plan-management", "root": "pages/mall/admin/finance",
"pages": [
{
"path": "record",
"style": {
"navigationBarTitleText": "财务管理",
"navigationStyle": "custom"
}
}
]
},
{
"root": "pages/mall/admin/subscription",
"pages": [
{
"path": "plan-management",
"style": { "style": {
"navigationBarTitleText": "订阅方案管理" "navigationBarTitleText": "订阅方案管理"
} }
}, },
{ {
"path": "subscription/user-subscriptions", "path": "user-subscriptions",
"style": { "style": {
"navigationBarTitleText": "用户订阅管理" "navigationBarTitleText": "用户订阅管理"
} }
}
]
}, },
{ {
"path": "distribution/setting/index", "root": "pages/mall/admin/distribution",
"pages": [
{
"path": "setting/index",
"style": { "style": {
"navigationBarTitleText": "分销设置", "navigationBarTitleText": "分销设置",
"navigationStyle": "custom" "navigationStyle": "custom"
} }
}, },
{ {
"path": "distribution/promoter/index", "path": "promoter/index",
"style": { "style": {
"navigationBarTitleText": "分销员管理", "navigationBarTitleText": "分销员管理",
"navigationStyle": "custom" "navigationStyle": "custom"
} }
}, },
{ {
"path": "distribution/level/index", "path": "level/index",
"style": { "style": {
"navigationBarTitleText": "分销等级管理", "navigationBarTitleText": "分销等级管理",
"navigationStyle": "custom" "navigationStyle": "custom"
} }
}, },
{ {
"path": "distribution/division/list", "path": "division/list",
"style": { "style": {
"navigationBarTitleText": "事业部管理", "navigationBarTitleText": "事业部管理",
"navigationStyle": "custom" "navigationStyle": "custom"
} }
}, },
{ {
"path": "distribution/division/agent", "path": "division/agent",
"style": { "style": {
"navigationBarTitleText": "代理商列表", "navigationBarTitleText": "代理商列表",
"navigationStyle": "custom" "navigationStyle": "custom"
} }
}, },
{ {
"path": "distribution/division/apply", "path": "division/apply",
"style": { "style": {
"navigationBarTitleText": "事业部申请", "navigationBarTitleText": "事业部申请",
"navigationStyle": "custom" "navigationStyle": "custom"
} }
}
]
}, },
{ {
"path": "marketing/coupon/list", "root": "pages/mall/admin/marketing",
"pages": [
{
"path": "coupon/list",
"style": { "style": {
"navigationBarTitleText": "优惠券列表" "navigationBarTitleText": "优惠券列表"
} }
}, },
{ {
"path": "marketing/coupon/receive", "path": "coupon/receive",
"style": { "style": {
"navigationBarTitleText": "用户领取记录" "navigationBarTitleText": "用户领取记录"
} }
}, },
{ {
"path": "marketing/points/index", "path": "points/index",
"style": { "style": {
"navigationBarTitleText": "积分管理" "navigationBarTitleText": "积分管理"
} }
}, },
{ {
"path": "marketing/signin/rule", "path": "signin/rule",
"style": { "style": {
"navigationBarTitleText": "签到规则" "navigationBarTitleText": "签到规则"
} }
}, },
{ {
"path": "marketing/signin/record", "path": "signin/record",
"style": { "style": {
"navigationBarTitleText": "签到记录" "navigationBarTitleText": "签到记录"
} }
}
]
}, },
{ {
"path": "maintain/dev-tools/database", "root": "pages/mall/admin/maintain",
"pages": [
{
"path": "dev-tools/database",
"style": { "style": {
"navigationBarTitleText": "数据库管理", "navigationBarTitleText": "数据库管理",
"navigationStyle": "custom" "navigationStyle": "custom"
} }
}, },
{ {
"path": "maintain/dev-tools/file", "path": "dev-tools/file",
"style": { "style": {
"navigationBarTitleText": "文件管理", "navigationBarTitleText": "文件管理",
"navigationStyle": "custom" "navigationStyle": "custom"
} }
}, },
{ {
"path": "maintain/dev-tools/api", "path": "dev-tools/api",
"style": { "style": {
"navigationBarTitleText": "接口管理", "navigationBarTitleText": "接口管理",
"navigationStyle": "custom" "navigationStyle": "custom"
} }
}, },
{ {
"path": "maintain/dev-tools/data-dict", "path": "dev-tools/data-dict",
"style": { "style": {
"navigationBarTitleText": "数据字典", "navigationBarTitleText": "数据字典",
"navigationStyle": "custom" "navigationStyle": "custom"
} }
}, },
{ {
"path": "setting/message", "path": "dev-config/category",
"style": {
"navigationBarTitleText": "配置分类",
"navigationStyle": "custom"
}
}
]
},
{
"root": "pages/mall/admin/setting",
"pages": [
{
"path": "message",
"style": { "style": {
"navigationBarTitleText": "消息管理", "navigationBarTitleText": "消息管理",
"navigationStyle": "custom" "navigationStyle": "custom"
} }
}, },
{ {
"path": "setting/agreement", "path": "agreement",
"style": { "style": {
"navigationBarTitleText": "协议设置", "navigationBarTitleText": "协议设置",
"navigationStyle": "custom" "navigationStyle": "custom"
} }
}, },
{ {
"path": "setting/ticket", "path": "ticket",
"style": { "style": {
"navigationBarTitleText": "小票配置", "navigationBarTitleText": "小票配置",
"navigationStyle": "custom" "navigationStyle": "custom"
} }
}, },
{ {
"path": "setting/auth/admin", "path": "auth/admin",
"style": { "style": {
"navigationBarTitleText": "管理员管理", "navigationBarTitleText": "管理员管理",
"navigationStyle": "custom" "navigationStyle": "custom"
} }
}, },
{ {
"path": "setting/auth/role", "path": "auth/role",
"style": { "style": {
"navigationBarTitleText": "角色管理", "navigationBarTitleText": "角色管理",
"navigationStyle": "custom" "navigationStyle": "custom"
} }
}, },
{ {
"path": "setting/auth/permission", "path": "auth/permission",
"style": { "style": {
"navigationBarTitleText": "权限规则", "navigationBarTitleText": "权限规则",
"navigationStyle": "custom" "navigationStyle": "custom"
} }
}, },
{ {
"path": "setting/delivery/staff", "path": "delivery/staff",
"style": { "style": {
"navigationBarTitleText": "配送员管理", "navigationBarTitleText": "配送员管理",
"navigationStyle": "custom" "navigationStyle": "custom"
} }
}, },
{ {
"path": "setting/delivery/station", "path": "delivery/station",
"style": { "style": {
"navigationBarTitleText": "提货点", "navigationBarTitleText": "提货点",
"navigationStyle": "custom" "navigationStyle": "custom"
} }
}, },
{ {
"path": "setting/delivery/verifier", "path": "delivery/verifier",
"style": { "style": {
"navigationBarTitleText": "核销员", "navigationBarTitleText": "核销员",
"navigationStyle": "custom" "navigationStyle": "custom"
} }
}, },
{ {
"path": "setting/delivery/template", "path": "delivery/template",
"style": { "style": {
"navigationBarTitleText": "运费模板", "navigationBarTitleText": "运费模板",
"navigationStyle": "custom" "navigationStyle": "custom"
} }
}, },
{ {
"path": "setting/interface/onepass/index", "path": "interface/onepass/index",
"style": { "style": {
"navigationBarTitleText": "一号通账户", "navigationBarTitleText": "一号通账户",
"navigationStyle": "custom" "navigationStyle": "custom"
} }
}, },
{ {
"path": "setting/interface/onepass/config", "path": "interface/onepass/config",
"style": { "style": {
"navigationBarTitleText": "一号通配置", "navigationBarTitleText": "一号通配置",
"navigationStyle": "custom" "navigationStyle": "custom"
} }
}, },
{ {
"path": "setting/interface/storage", "path": "interface/storage",
"style": { "style": {
"navigationBarTitleText": "系统存储配置", "navigationBarTitleText": "系统存储配置",
"navigationStyle": "custom" "navigationStyle": "custom"
} }
}, },
{ {
"path": "setting/interface/collect", "path": "interface/collect",
"style": { "style": {
"navigationBarTitleText": "商品采集配置", "navigationBarTitleText": "商品采集配置",
"navigationStyle": "custom" "navigationStyle": "custom"
} }
}, },
{ {
"path": "setting/interface/logistics", "path": "interface/logistics",
"style": { "style": {
"navigationBarTitleText": "物流查询配置", "navigationBarTitleText": "物流查询配置",
"navigationStyle": "custom" "navigationStyle": "custom"
} }
}, },
{ {
"path": "setting/interface/e-sheet", "path": "interface/e-sheet",
"style": { "style": {
"navigationBarTitleText": "电子面单配置", "navigationBarTitleText": "电子面单配置",
"navigationStyle": "custom" "navigationStyle": "custom"
} }
}, },
{ {
"path": "setting/interface/sms", "path": "interface/sms",
"style": { "style": {
"navigationBarTitleText": "短信功能配置", "navigationBarTitleText": "短信功能配置",
"navigationStyle": "custom" "navigationStyle": "custom"
} }
}, },
{ {
"path": "setting/interface/payment", "path": "interface/payment",
"style": { "style": {
"navigationBarTitleText": "商城支付配置", "navigationBarTitleText": "商城支付配置",
"navigationStyle": "custom" "navigationStyle": "custom"
} }
}, },
{ {
"path": "app/wechat/menu", "path": "system/config",
"style": {
"navigationBarTitleText": "系统配置",
"navigationStyle": "custom"
}
}
]
},
{
"root": "pages/mall/admin/app",
"pages": [
{
"path": "wechat/menu",
"style": { "style": {
"navigationBarTitleText": "微信菜单", "navigationBarTitleText": "微信菜单",
"navigationStyle": "custom" "navigationStyle": "custom"
} }
}, },
{ {
"path": "app/wechat/news", "path": "wechat/news",
"style": { "style": {
"navigationBarTitleText": "图文管理", "navigationBarTitleText": "图文管理",
"navigationStyle": "custom" "navigationStyle": "custom"
} }
}, },
{ {
"path": "app/wechat/reply/follow", "path": "wechat/reply/follow",
"style": { "style": {
"navigationBarTitleText": "微信关注回复", "navigationBarTitleText": "微信关注回复",
"navigationStyle": "custom" "navigationStyle": "custom"
} }
}, },
{ {
"path": "app/wechat/reply/keyword", "path": "wechat/reply/keyword",
"style": { "style": {
"navigationBarTitleText": "关键字回复", "navigationBarTitleText": "关键字回复",
"navigationStyle": "custom" "navigationStyle": "custom"
} }
}, },
{ {
"path": "app/wechat/reply/invalid", "path": "wechat/reply/invalid",
"style": { "style": {
"navigationBarTitleText": "无效关键词回复", "navigationBarTitleText": "无效关键词回复",
"navigationStyle": "custom" "navigationStyle": "custom"
} }
}, },
{ {
"path": "app/wechat/config", "path": "wechat/config",
"style": { "style": {
"navigationBarTitleText": "公众号配置", "navigationBarTitleText": "公众号配置",
"navigationStyle": "custom" "navigationStyle": "custom"
} }
}, },
{ {
"path": "app/routine/download", "path": "routine/download",
"style": { "style": {
"navigationBarTitleText": "小程序下载", "navigationBarTitleText": "小程序下载",
"navigationStyle": "custom" "navigationStyle": "custom"
} }
}, },
{ {
"path": "app/routine/config", "path": "routine/config",
"style": { "style": {
"navigationBarTitleText": "小程序配置", "navigationBarTitleText": "小程序配置",
"navigationStyle": "custom" "navigationStyle": "custom"
} }
}, },
{ {
"path": "app/mobile/config", "path": "mobile/config",
"style": { "style": {
"navigationBarTitleText": "APP配置", "navigationBarTitleText": "APP配置",
"navigationStyle": "custom" "navigationStyle": "custom"
} }
}, },
{ {
"path": "app/mobile/version", "path": "mobile/version",
"style": { "style": {
"navigationBarTitleText": "版本管理", "navigationBarTitleText": "版本管理",
"navigationStyle": "custom" "navigationStyle": "custom"
} }
}, },
{ {
"path": "app/pc/design", "path": "pc/design",
"style": { "style": {
"navigationBarTitleText": "PC端装修", "navigationBarTitleText": "PC端装修",
"navigationStyle": "custom" "navigationStyle": "custom"
} }
}, },
{ {
"path": "app/pc/config", "path": "pc/config",
"style": { "style": {
"navigationBarTitleText": "PC端配置", "navigationBarTitleText": "PC端配置",
"navigationStyle": "custom" "navigationStyle": "custom"
} }
},
{
"path": "maintain/dev-config/category",
"style": {
"navigationBarTitleText": "配置分类",
"navigationStyle": "custom"
}
},
{
"path": "setting/system/config",
"style": {
"navigationBarTitleText": "系统配置",
"navigationStyle": "custom"
}
} }
] ]
}, },

View File

@@ -8,5 +8,29 @@ export default defineConfig({
alias: { alias: {
'@': fileURLToPath(new URL('./', import.meta.url)) '@': fileURLToPath(new URL('./', import.meta.url))
} }
},
build: {
// 生产环境构建配置
rollupOptions: {
output: {
// 手动拆包策略:将第三方库拆分成独立文件,减少首屏主包体积
manualChunks(id) {
if (id.includes('node_modules')) {
// 将 vue 相关依赖拆分到 vendor-vue
if (id.includes('vue')) {
return 'vendor-vue'
}
// 将 dcloudio (uni-app) 相关依赖拆分
if (id.includes('@dcloudio')) {
return 'vendor-uni'
}
// 其他 node_modules 依赖放入 vendor
return 'vendor'
}
}
}
},
// 提高警告门槛,由默认 500kb 提至 1000kb
chunkSizeWarningLimit: 1000
} }
}) })