DG7/MRF7 移动信息架构与展示去重治理
这个提交包含在:
+5
-2
@@ -65,8 +65,7 @@ export function buildMobileApprovalsPath(taskId?: string | null) {
|
||||
return "/mobile/approvals";
|
||||
}
|
||||
|
||||
const params = new URLSearchParams({ taskId: normalizedTaskId });
|
||||
return `/mobile/approvals?${params.toString()}`;
|
||||
return `/mobile/approvals/${encodeURIComponent(normalizedTaskId)}`;
|
||||
}
|
||||
|
||||
export function extractWorkflowTaskId(pathname: string) {
|
||||
@@ -79,6 +78,10 @@ export function isOfflineSnapshotAllowedPath(pathname: string) {
|
||||
return true;
|
||||
}
|
||||
|
||||
if (/^\/mobile\/approvals\/[^/]+$/.test(pathname)) {
|
||||
return true;
|
||||
}
|
||||
|
||||
return Boolean(extractWorkflowTaskId(pathname));
|
||||
}
|
||||
|
||||
|
||||
在新工单中引用
屏蔽一个用户