Files
Neo-ZQYY/tmp/patch_ts.ps1
Neo 66c9ae8738 chore: 迁移项目路径 C:\NeoZQYY → C:\Project\NeoZQYY
开发环境从旧虚拟机 (DESKTOP-KGB0K5G) 迁移到新机器 (DESKTOP-D676QDA),
项目目录从 C:\NeoZQYY 变更为 C:\Project\NeoZQYY,
批量替换 126 个文件中的绝对路径引用。

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-04-10 06:45:29 +08:00

7 lines
603 B
PowerShell

$f = 'c:/Project/NeoZQYY/apps/miniprogram/miniprogram/pages/performance-records/performance-records.ts'
$c = [System.IO.File]::ReadAllText($f, [System.Text.Encoding]::UTF8)
$c = $c.Replace(" totalHours: '0h',`r`n totalIncome: '¥0',", " totalHours: '0h',`r`n totalHoursRaw: '0h',`r`n totalIncome: '¥0',")
$c = $c.Replace(" totalHours: '59.0h',`r`n totalIncome: '¥4,720',", " totalHours: '59.0h',`r`n totalHoursRaw: '60.5h',`r`n totalIncome: '¥4,720',")
[System.IO.File]::WriteAllText($f, $c, [System.Text.Encoding]::UTF8)
Write-Host 'done'