Commit edb73b9999bc659f3ef4121f2742006c599e44e1
1 parent
ed7a9b08
fix: 账号管理,一开始没有选择,默认为永久,然后选择了一个时间,再叉掉就该设置为永久期限,但是没效果
Showing
1 changed file
with
3 additions
and
0 deletions
@@ -245,6 +245,9 @@ | @@ -245,6 +245,9 @@ | ||
245 | delete postData.email; | 245 | delete postData.email; |
246 | } | 246 | } |
247 | } | 247 | } |
248 | + if (!Reflect.get(values, 'accountExpireTime')) { | ||
249 | + Reflect.deleteProperty(postData, 'accountExpireTime'); | ||
250 | + } | ||
248 | await SaveOrUpdateUserInfo(postData as any, unref(isUpdate)); | 251 | await SaveOrUpdateUserInfo(postData as any, unref(isUpdate)); |
249 | closeModal(); | 252 | closeModal(); |
250 | emit('success'); | 253 | emit('success'); |