移除Host头验证中间件及相关逻辑,简化OAuth相关API的请求处理,优化代码结构和可读性。
This commit is contained in:
@@ -512,14 +512,13 @@ export default function RulesFiles() {
|
||||
try {
|
||||
setAttachmentUploading(true);
|
||||
const docId = parseInt(selectedDocumentId, 10);
|
||||
const jwtToken = (frontendJWT as string | undefined) || (userInfo?.frontend_jwt as unknown as string | undefined);
|
||||
const result = await appendContractAttachments(
|
||||
docId,
|
||||
attachmentFiles,
|
||||
attachmentMergeMode,
|
||||
true,
|
||||
attachmentRemark || undefined,
|
||||
jwtToken
|
||||
frontendJWT as string | undefined
|
||||
);
|
||||
if (result.error) {
|
||||
throw new Error(result.error);
|
||||
@@ -666,7 +665,7 @@ export default function RulesFiles() {
|
||||
>
|
||||
查看
|
||||
</Button>
|
||||
{reviewType === 'contract' && file.status === 'Processed' && (
|
||||
{file.fileTypeId === 1 && file.status === 'Processed' && (
|
||||
<button
|
||||
type="button"
|
||||
className="text-xs px-2 py-1 h-7 mr-1 bg-primary text-white hover:bg-primary-dark rounded"
|
||||
|
||||
Reference in New Issue
Block a user