perf: 修改模版平台参数无法设置 (#3402)

* perf: 修改模版平台参数无法设置

* perf: remove debug

---------

Co-authored-by: ibuler <ibuler@qq.com>
This commit is contained in:
fit2bot 2023-09-20 14:09:31 +08:00 committed by GitHub
parent cf7a77ce2e
commit 097817e02c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 1 additions and 10 deletions

View File

@ -112,7 +112,6 @@ export default {
},
platforms: {
handler(newVal) {
console.log('Found platforms change, ', newVal.length)
this.onFieldChangeHandler()
},
deep: true,
@ -129,7 +128,6 @@ export default {
this.remoteMeta = data.actions[this.config.method.toUpperCase()] || {}
},
async getFilterPlatforms() {
console.log('this.Platforms', this.platforms)
return await this.$axios.post(
'/api/v1/assets/platforms/filter-nodes-assets/',
{

View File

@ -27,13 +27,6 @@ export default {
fieldsMeta: {
...templateFieldsMeta(vm)
},
afterGetFormValue(value) {
if (!value.platforms) {
return
}
vm.fieldsMeta['push_params'].el.platforms = value['platforms']
return value
},
cleanFormValue(value) {
Object.keys(value).forEach((item, index, arr) => {
if (['ssh_key', 'token', 'access_key', 'api_key'].includes(item)) {

View File

@ -115,7 +115,7 @@ export const templateFieldsMeta = (vm) => {
}
},
on: {
change: ([event], updateForm) => {
input: ([event], updateForm) => {
platformIds.splice(0, platformIds.length)
platformIds.push(...event)
}