fix: extraInsurances TS类型断言 + trust proxy设置,部署到on.hr8ai.top

This commit is contained in:
selfrelease
2026-07-27 19:34:04 +08:00
parent 255af519d2
commit ab677eb5d9
3 changed files with 5 additions and 3 deletions
+1 -1
View File
@@ -46,7 +46,7 @@ export function calcSocialInsurance(base: number, config: any) {
// 附加险种(大病险/长护险等)
const extraItems: any[] = []
if (config.extraInsurances && Array.isArray(config.extraInsurances)) {
for (const ins of config.extraInsurances) {
for (const ins of config.extraInsurances as any[]) {
const insBase = ins.baseType === 'medical' ? medicalBase : ins.baseType === 'fixed' ? 1 : actualBase
if (ins.baseType === 'fixed' && ins.fixedAmount) {
const orgAmt = ins.fixedAmount