修复bug

This commit is contained in:
2026-07-31 15:34:35 +08:00
parent d0f94d95d7
commit b53fe81999
41 changed files with 362 additions and 3106 deletions
+8 -5
View File
@@ -27,7 +27,8 @@ const router = createRouter({
{
path: 'customers',
name: 'customers',
component: () => import('@/views/CustomersView.vue'),
component: () => import('@/views/IntegrationUnavailableView.vue'),
props: { moduleName: '客户管理', description: '后端尚未提供平台客户档案列表及维护接口。企业注册审核请使用“企业审核”页面。' },
meta: { title: '客户管理', description: '维护客户企业资料、合作状态和注册审核', permission: 'platform:customer:list' },
},
{
@@ -51,13 +52,15 @@ const router = createRouter({
{
path: 'master-data/express-companies',
name: 'express-companies',
component: () => import('@/views/ExpressCompaniesView.vue'),
component: () => import('@/views/IntegrationUnavailableView.vue'),
props: { moduleName: '快递公司', description: '后端尚未提供平台快递公司主数据的正式查询和维护接口。' },
meta: { title: '快递公司', description: '查询平台可用的快递公司档案与公开联系信息', permission: 'platform:express:list' },
},
{
path: 'master-data/counterparties',
name: 'counterparties',
component: () => import('@/views/CounterpartiesView.vue'),
component: () => import('@/views/IntegrationUnavailableView.vue'),
props: { moduleName: '往来单位', description: '现有往来单位接口仅面向企业端,后端尚未提供平台侧正式维护接口。' },
meta: { title: '往来单位', description: '维护供应商、客户、承运商、报关行及收发货单位档案', permission: 'platform:counterparty:list' },
},
{
@@ -82,7 +85,7 @@ const router = createRouter({
path: '403',
name: 'forbidden',
component: () => import('@/views/ForbiddenView.vue'),
meta: { title: '权限不足', description: '当前权限预览角色无法访问此页面' },
meta: { title: '权限不足', description: '当前登录账号没有访问此页面的权限' },
},
],
},
@@ -91,7 +94,7 @@ const router = createRouter({
})
router.beforeEach((to) => {
document.title = to.meta.title ? `${to.meta.title} - 虫虫出海管理后台` : '虫虫出海管理后台'
document.title = to.meta.title ? `${to.meta.title} - 柏悦物流管理后台` : '柏悦物流管理后台'
const auth = useAuthStore()
if (to.name === 'login' && auth.isAuthenticated) {
return { name: 'home' }