Merge pull request #3133 from jumpserver/pr@dev@account

fix: 修改创建资产时创建账号的顺序
This commit is contained in:
feng626 2023-05-18 16:30:36 +08:00 committed by GitHub
commit dbe4c232c1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -74,6 +74,7 @@ export default {
delete values['accounts']
} else {
const accounts = values?.accounts || []
accounts.reverse()
values.accounts = accounts.map((item) => {
item['secret'] = encryptPassword(item['secret'])
return item