mirror of
https://github.com/digitalocean/nginxconfig.io.git
synced 2025-09-22 03:45:34 +08:00
Add all the logic for presets working
This commit is contained in:
@@ -61,6 +61,12 @@ limitations under the License.
|
||||
if (changes) return ` (${changes.toLocaleString()})`;
|
||||
return '';
|
||||
},
|
||||
setValue(tab, key, val) {
|
||||
Object.assign(this.$props.data[tab][key], { value: val, computed: val });
|
||||
},
|
||||
resetValue(tab, key) {
|
||||
this.setValue(tab, key, this.$props.data[tab][key].default);
|
||||
},
|
||||
},
|
||||
};
|
||||
</script>
|
||||
|
Reference in New Issue
Block a user