Move default setting to child component

This commit is contained in:
zsxeee
2021-09-19 18:05:22 +08:00
parent 2fb3c40307
commit ffbc25722d
3 changed files with 10 additions and 2 deletions

View File

@@ -23,5 +23,10 @@ export default {
components: {
HiddenInput,
},
mounted() {
if (typeof this.$parent.notification.gotifyPriority === "undefined") {
this.$parent.notification.gotifyPriority = 8;
}
},
}
</script>

View File

@@ -66,5 +66,10 @@ export default {
components: {
HiddenInput,
},
mounted() {
if (typeof this.$parent.notification.smtpSecure === "undefined") {
this.$parent.notification.smtpSecure = false;
}
},
}
</script>