魔墙:添加实时更新提示

This commit is contained in:
miao 2023-01-03 17:14:31 +08:00
parent 4ecd2ab89d
commit 45e2e4589e
1 changed files with 10 additions and 0 deletions

View File

@ -620,6 +620,16 @@ export default defineComponent({
let client = GlobalData.getInstance().getCurrentClient();
if(client){
const setMagic = await client.setMagicWallConfig(cloud_monitor_list);
$q.notify({
color: setMagic?.success ? "positive" : "negative",
icon: setMagic?.success ? "done" : "warning",
message:
$t.t("update magic wall") +
(setMagic?.success ? $t.t("success") : $t.t("fail")) +
"!",
position: "top",
timeout: 2500,
});
}
};
const ar = 0.5;