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:
@@ -183,7 +183,7 @@ export default {
|
||||
|
||||
const value = Object.keys(out).length ? JSON.stringify(out) : '';
|
||||
|
||||
this.$set(this.value, 'value', value);
|
||||
this.value['value'] = value;
|
||||
},
|
||||
|
||||
addMirror() {
|
||||
@@ -210,8 +210,8 @@ export default {
|
||||
value: {
|
||||
handler(value) {
|
||||
if (!value.value) { // useDefaultVale
|
||||
this.$set(this, 'mirrors', []);
|
||||
this.$set(this, 'configs', []);
|
||||
this['mirrors'] = [];
|
||||
this['configs'] = [];
|
||||
this.update();
|
||||
}
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user