refactor(项目设置): 工作台保存时间提示优化

--user=郭雨琦
This commit is contained in:
guoyuqi 2022-07-27 10:46:41 +08:00 committed by xiaomeinvG
parent c737018d20
commit 7af597095c
1 changed files with 6 additions and 2 deletions

View File

@ -452,10 +452,14 @@ export default {
let configs = []; let configs = [];
if (this.config.openUpdateTime) { if (this.config.openUpdateTime) {
if (!this.pastQuantity) { if (!this.pastQuantity) {
this.$message.error("请选择时间") this.$message.error("请选择时间");
this.config.openUpdateTime = false;
return
} }
if (!this.pastUnit) { if (!this.pastUnit) {
this.$message.error("请选择时间单位") this.$message.error("请选择时间单位");
this.config.openUpdateTime = false;
return
} }
this.config.openUpdateRuleTime = this.pastQuantity + this.pastUnit; this.config.openUpdateRuleTime = this.pastQuantity + this.pastUnit;
configs.push({ configs.push({