mirror of
https://github.com/jumpserver/lina.git
synced 2025-08-27 10:59:05 +00:00
Merge branch 'v4' of github.com:jumpserver/lina into v4
This commit is contained in:
commit
fdb52fb4f4
@ -42,7 +42,3 @@ export default {
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
<style scoped>
|
||||
|
||||
</style>
|
||||
|
@ -1,5 +1,8 @@
|
||||
<template>
|
||||
<GenericCreateUpdatePage v-bind="$data" />
|
||||
<GenericCreateUpdatePage
|
||||
v-bind="$data"
|
||||
@getObjectDone="getObjectDone"
|
||||
/>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
@ -21,7 +24,6 @@ export default {
|
||||
isUpdate && value.push('is_sync_account')
|
||||
}
|
||||
}
|
||||
|
||||
return {
|
||||
initial: {
|
||||
secret_type: 'password',
|
||||
@ -66,10 +68,13 @@ export default {
|
||||
createSuccessNextRoute: { name: 'AccountTemplateList' },
|
||||
updateSuccessNextRoute: { name: 'AccountTemplateList' }
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
getObjectDone(obj) {
|
||||
if (['token', 'access_key', 'api_key'].includes(obj.secret_type.value)) {
|
||||
this.fieldsMeta.auto_push.el.disabled = true
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
<style>
|
||||
|
||||
</style>
|
||||
|
Loading…
Reference in New Issue
Block a user