fix: wpr delete在撤销时可以触发

This commit is contained in:
caoqianming 2025-03-14 18:19:31 +08:00
parent 443a818aec
commit 8928bb4307
1 changed files with 1 additions and 1 deletions

View File

@ -33,7 +33,7 @@ class Wpr(BaseModel):
if wpr:
ins:Wpr = wpr
if wpr and mb is None and wm is None and ins.version <=1:
if wpr and mb is None and wm is None and ins.version <= 0: # 相当于撤回操作
wpr.delete()
return
elif number: