chore: 修改请假demo路径

This commit is contained in:
dap 2024-12-16 16:10:06 +08:00
parent d7d3186ef0
commit 5e5f4fbb97
3 changed files with 5 additions and 5 deletions

View File

@ -138,7 +138,7 @@ const profileRoute: RouteRecordStringComponent[] = [
},
name: 'WorkflowLeave',
path: '/',
redirect: '/workflow/leave',
redirect: '/workflow/leaveEdit/index',
children: [
{
component: 'workflow/leave/leave-form',
@ -148,7 +148,7 @@ const profileRoute: RouteRecordStringComponent[] = [
title: '请假申请',
},
name: 'WorkflowLeaveIndex',
path: '/workflow/leave',
path: '/workflow/leaveEdit/index',
},
],
},
@ -161,7 +161,7 @@ const profileRoute: RouteRecordStringComponent[] = [
hideInMenu: true,
},
name: 'WorkflowLeaveInner',
path: '/workflow/leave-inner',
path: '/workflow/leaveEdit/index/iframe',
},
];

View File

@ -117,7 +117,7 @@ async function handleCancel() {
<div class="h-fulloverflow-y-auto">
<!-- <Alert message="该页面仅为静态页 后期可能会用到!" type="info" /> -->
<iframe
:src="`/workflow/leave-inner?readonly=true&id=${task.businessId}`"
:src="`/workflow/leaveEdit/index/iframe?readonly=true&id=${task.businessId}`"
class="h-[300px] w-full"
></iframe>
<Divider />

View File

@ -72,7 +72,7 @@ const [LeaveModal, modalApi] = useVbenModal({
const router = useRouter();
function handleAdd() {
router.push('/workflow/leave');
router.push('/workflow/leaveEdit/index');
}
async function handleEdit(row: Required<LeaveForm>) {