提交代码
This commit is contained in:
parent
e880cfc2c3
commit
230066f1b9
|
|
@ -60,7 +60,7 @@ export default {
|
||||||
inputPattern: /^.{0,200}$/, // 限制最多200字符
|
inputPattern: /^.{0,200}$/, // 限制最多200字符
|
||||||
inputErrorMessage: '描述不能超过200字符',
|
inputErrorMessage: '描述不能超过200字符',
|
||||||
beforeClose: (action, instance, done) => {
|
beforeClose: (action, instance, done) => {
|
||||||
console.log(instance)
|
if (action ==='confirm'){
|
||||||
// 验证输入框内容是否为空(必填)
|
// 验证输入框内容是否为空(必填)
|
||||||
if (!instance.inputValue) {
|
if (!instance.inputValue) {
|
||||||
this.$message({
|
this.$message({
|
||||||
|
|
@ -69,6 +69,7 @@ export default {
|
||||||
});
|
});
|
||||||
return; // 阻止关闭弹框
|
return; // 阻止关闭弹框
|
||||||
}
|
}
|
||||||
|
}
|
||||||
done();
|
done();
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue