perf: 优化前端出图逻辑

Status Job ID Name Coverage
  Install
passed #331844
civmanage allowed to fail manual
install

02:02

 
  Package
passed #331845
civmanage manual
package

10:45

 
  Push
failed #331846
civmanage
push_2021

00:06

passed #331847
civmanage
push_solution

00:53

 
Name Stage Failure
failed
push_2021 Push
fatal: Unable to create 'F:/CIV_CI/CivWebPublish2021_CIVWeb5/CivWebPublish2021/.git/index.lock': File exists.

Another git process seems to be running in this repository, e.g.
an editor opened by 'git commit'. Please make sure all processes
are terminated then try again. If it still fails, a git process
may have crashed in this repository earlier:
remove the file manually to continue.
Cleaning up project directory and file based variables
ERROR: Job failed: exit status 1