调整提示超时时间

This commit is contained in:
fangxiang 2021-12-22 11:25:04 +08:00
parent 77ec933798
commit f908813a49
11 changed files with 24 additions and 24 deletions

View File

@ -199,7 +199,7 @@ export default defineComponent({
type: "positive", type: "positive",
message: $t.t("upload background image") + $t.t("success") + "!", message: $t.t("upload background image") + $t.t("success") + "!",
position: "top", position: "top",
timeout: 1000, timeout: 1500,
}); });
loading.value = false; loading.value = false;
show_dialog.value = false; show_dialog.value = false;
@ -210,7 +210,7 @@ export default defineComponent({
type: "warning", type: "warning",
message: $t.t("upload background image") + $t.t("fail") + "!", message: $t.t("upload background image") + $t.t("fail") + "!",
position: "top", position: "top",
timeout: 1000, timeout: 1500,
}); });
loading.value = false; loading.value = false;
}, },

View File

@ -223,7 +223,7 @@ export default defineComponent({
(response.success ? $t.t("success") : $t.t("fail")) + (response.success ? $t.t("success") : $t.t("fail")) +
"!", "!",
position: "top", position: "top",
timeout: 1000, timeout: 1500,
}); });
} }
}; };
@ -241,7 +241,7 @@ export default defineComponent({
(response.success ? $t.t("success") : $t.t("fail")) + (response.success ? $t.t("success") : $t.t("fail")) +
"!", "!",
position: "top", position: "top",
timeout: 1000, timeout: 1500,
}); });
} }
}; };

View File

@ -194,7 +194,7 @@ export default defineComponent({
(response.success ? $t.t("success") : $t.t("fail")) + (response.success ? $t.t("success") : $t.t("fail")) +
"!", "!",
position: "top", position: "top",
timeout: 1000, timeout: 1500,
}); });
} }
}; };
@ -212,7 +212,7 @@ export default defineComponent({
(response.success ? $t.t("success") : $t.t("fail")) + (response.success ? $t.t("success") : $t.t("fail")) +
"!", "!",
position: "top", position: "top",
timeout: 1000, timeout: 1500,
}); });
} }
}; };

View File

@ -184,7 +184,7 @@ export default defineComponent({
message: message:
$t.t("delete") + (success ? $t.t("success") : $t.t("fail")) + "!", $t.t("delete") + (success ? $t.t("success") : $t.t("fail")) + "!",
position: "top", position: "top",
timeout: 1000, timeout: 1500,
}); });
}, },
callMode(item: ModeEntity) { callMode(item: ModeEntity) {
@ -194,7 +194,7 @@ export default defineComponent({
icon: "done", icon: "done",
message: $t.t("call mode directives send") + $t.t("success") + "!", message: $t.t("call mode directives send") + $t.t("success") + "!",
position: "top", position: "top",
timeout: 1000, timeout: 1500,
}); });
}, },
}; };

View File

@ -443,7 +443,7 @@ export default defineComponent({
(response.success ? $t.t("success") : $t.t("fail")) + (response.success ? $t.t("success") : $t.t("fail")) +
"!", "!",
position: "top", position: "top",
timeout: 1000, timeout: 1500,
}); });
} }
}; };
@ -482,7 +482,7 @@ export default defineComponent({
(response.success ? $t.t("success") : $t.t("fail")) + (response.success ? $t.t("success") : $t.t("fail")) +
"!", "!",
position: "top", position: "top",
timeout: 1000, timeout: 1500,
}); });
} }
}; };
@ -567,7 +567,7 @@ export default defineComponent({
type: "warning", type: "warning",
message: $t.t("auto delete unknow mode success"), message: $t.t("auto delete unknow mode success"),
position: "top", position: "top",
timeout: 1000, timeout: 1500,
}); });
} }
datas.value = temp; datas.value = temp;

View File

@ -194,7 +194,7 @@ export default defineComponent({
(response.success ? $t.t("success") : $t.t("fail")) + (response.success ? $t.t("success") : $t.t("fail")) +
"!", "!",
position: "top", position: "top",
timeout: 1000, timeout: 1500,
}); });
} }
}; };
@ -212,7 +212,7 @@ export default defineComponent({
(response.success ? $t.t("success") : $t.t("fail")) + (response.success ? $t.t("success") : $t.t("fail")) +
"!", "!",
position: "top", position: "top",
timeout: 1000, timeout: 1500,
}); });
} }
}; };

View File

@ -222,7 +222,7 @@ export default defineComponent({
message: message:
$t.t("delete") + (success ? $t.t("success") : $t.t("fail")) + "!", $t.t("delete") + (success ? $t.t("success") : $t.t("fail")) + "!",
position: "top", position: "top",
timeout: 1000, timeout: 1500,
}); });
}, },
runPlan(item: PlanEntity) { runPlan(item: PlanEntity) {
@ -232,7 +232,7 @@ export default defineComponent({
icon: "done", icon: "done",
message: $t.t("run plan directives send") + $t.t("success") + "!", message: $t.t("run plan directives send") + $t.t("success") + "!",
position: "top", position: "top",
timeout: 1000, timeout: 1500,
}); });
}, },
unsetPowerOnPlan(evt: PointerEvent, uuid: string) { unsetPowerOnPlan(evt: PointerEvent, uuid: string) {

View File

@ -170,7 +170,7 @@ export default defineComponent({
type: "positive", type: "positive",
message: $t.t("data import") + $t.t("success") + "!", message: $t.t("data import") + $t.t("success") + "!",
position: "top", position: "top",
timeout: 1000, timeout: 1500,
}); });
$q.dialog({ $q.dialog({
title: "Confirm", title: "Confirm",
@ -191,7 +191,7 @@ export default defineComponent({
type: "positive", type: "positive",
message: $t.t("reboot device command sended") + "!", message: $t.t("reboot device command sended") + "!",
position: "top", position: "top",
timeout: 1000, timeout: 1500,
}); });
}) })
.onDismiss(() => { .onDismiss(() => {
@ -205,7 +205,7 @@ export default defineComponent({
type: "warning", type: "warning",
message: $t.t("data import") + $t.t("fail") + "!", message: $t.t("data import") + $t.t("fail") + "!",
position: "top", position: "top",
timeout: 1000, timeout: 1500,
}); });
loading.value = false; loading.value = false;
}, },

View File

@ -392,7 +392,7 @@ export default defineComponent({
(response.success ? $t.t("success") : $t.t("fail")) + (response.success ? $t.t("success") : $t.t("fail")) +
"!", "!",
position: "top", position: "top",
timeout: 1000, timeout: 1500,
}); });
} }
}; };
@ -412,7 +412,7 @@ export default defineComponent({
(response.success ? $t.t("success") : $t.t("fail")) + (response.success ? $t.t("success") : $t.t("fail")) +
"!", "!",
position: "top", position: "top",
timeout: 1000, timeout: 1500,
}); });
} }
}; };

View File

@ -203,7 +203,7 @@ export default defineComponent({
message: message:
$t.t("delete") + (success ? $t.t("success") : $t.t("fail")) + "!", $t.t("delete") + (success ? $t.t("success") : $t.t("fail")) + "!",
position: "top", position: "top",
timeout: 1000, timeout: 1500,
}); });
}, },
}; };

View File

@ -385,7 +385,7 @@ export default defineComponent({
icon: "warning", icon: "warning",
message: $t.t("editor error") + "!", message: $t.t("editor error") + "!",
position: "top", position: "top",
timeout: 1000, timeout: 1500,
}); });
return; return;
} }
@ -405,7 +405,7 @@ export default defineComponent({
icon: "warning", icon: "warning",
message: $t.t("input data error") + "!", message: $t.t("input data error") + "!",
position: "top", position: "top",
timeout: 1000, timeout: 1500,
}); });
return; return;
} }
@ -417,7 +417,7 @@ export default defineComponent({
icon: "done", icon: "done",
message: $t.t("set subtitle success") + "!", message: $t.t("set subtitle success") + "!",
position: "top", position: "top",
timeout: 1000, timeout: 1500,
}); });
show_dialog.value = false; show_dialog.value = false;
} catch {} } catch {}