mirror of
https://github.com/louislam/uptime-kuma.git
synced 2024-12-23 14:29:42 -05:00
Fixed suggestions
This commit is contained in:
parent
58240aceef
commit
b95404b6e0
@ -2,6 +2,6 @@
|
|||||||
BEGIN TRANSACTION;
|
BEGIN TRANSACTION;
|
||||||
|
|
||||||
ALTER TABLE notification
|
ALTER TABLE notification
|
||||||
ADD is_default BOOLEAN;
|
ADD is_default BOOLEAN default 0 NOT NULL;
|
||||||
|
|
||||||
COMMIT;
|
COMMIT;
|
||||||
|
@ -298,16 +298,16 @@ export default {
|
|||||||
dns_resolve_type: "A",
|
dns_resolve_type: "A",
|
||||||
dns_resolve_server: "1.1.1.1",
|
dns_resolve_server: "1.1.1.1",
|
||||||
}
|
}
|
||||||
} else if (this.isEdit) {
|
|
||||||
this.$root.getSocket().emit("getMonitor", this.$route.params.id, (res) => {
|
|
||||||
if (res.ok) {
|
|
||||||
this.monitor = res.monitor;
|
|
||||||
|
|
||||||
for (let i = 0; i < this.$root.notificationList.length; i++) {
|
for (let i = 0; i < this.$root.notificationList.length; i++) {
|
||||||
if (this.$root.notificationList[i].isDefault == true) {
|
if (this.$root.notificationList[i].isDefault == true) {
|
||||||
this.monitor.notificationIDList[this.$root.notificationList[i].id] = true;
|
this.monitor.notificationIDList[this.$root.notificationList[i].id] = true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
} else if (this.isEdit) {
|
||||||
|
this.$root.getSocket().emit("getMonitor", this.$route.params.id, (res) => {
|
||||||
|
if (res.ok) {
|
||||||
|
this.monitor = res.monitor;
|
||||||
} else {
|
} else {
|
||||||
toast.error(res.msg)
|
toast.error(res.msg)
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user