Commit 554857af by 黑潮

update: limit input

parent caa613c6
......@@ -2041,6 +2041,15 @@ export default {
v = 0
}
}
// 部分标签只允许输入整数
const tags = ['次数', '天数', '时长'];
if(tags.some((el) => this.tagData.tagName.indexOf(el) !== -1)) {
v = Math.floor(v);
if(v < 0) {
v = 0
}
}
return v;
},
onChangeTime(val) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment