mirror of
https://github.com/harvester/harvester-ui-extension.git
synced 2026-10-04 13:16:05 +08:00
Vue migration - remove Vuew.set & this.$set; add vue-migrate script
Signed-off-by: Francesco Torchia <francesco.torchia@suse.com>
This commit is contained in:
@@ -30,11 +30,11 @@ export default {
|
||||
onKeySelectedCa(type, file) {
|
||||
const { name, value } = file;
|
||||
|
||||
this.$set(this.parseDefaultValue, type, value);
|
||||
this.$set(this, `${ type }FileName`, name);
|
||||
this.parseDefaultValue[type] = value;
|
||||
this[`${ type }FileName`] = name;
|
||||
const _value = JSON.stringify(this.parseDefaultValue);
|
||||
|
||||
this.$set(this.value, 'value', _value);
|
||||
this.value['value'] = _value;
|
||||
}
|
||||
},
|
||||
|
||||
@@ -43,7 +43,7 @@ export default {
|
||||
handler(neu) {
|
||||
const parseDefaultValue = JSON.parse(neu.value);
|
||||
|
||||
this.$set(this, 'parseDefaultValue', parseDefaultValue);
|
||||
this['parseDefaultValue'] = parseDefaultValue;
|
||||
},
|
||||
deep: true
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user