Commit 4251f248 by Lin

fix:简化场景状态更改后的成功消息

1 parent 1421bf63
...@@ -221,7 +221,7 @@ export default { ...@@ -221,7 +221,7 @@ export default {
await disableScene({ id: row.id }); await disableScene({ id: row.id });
} }
this.$set(row, "status", val); this.$set(row, "status", val);
this.$message?.success?.(val === 1 ? "操作成功,状态变为【启用】" : "操作成功,状态变为【禁用】"); this.$message?.success?.("操作成功");
} catch (e) { } catch (e) {
this.$set(row, "status", prevVal); this.$set(row, "status", prevVal);
this.$message?.error?.(e?.message || "操作失败,请稍后重试"); this.$message?.error?.(e?.message || "操作失败,请稍后重试");
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!