4.0bug修改

This commit is contained in:
2025-09-10 19:14:15 +08:00
parent ff5f583326
commit d447f23376
32 changed files with 175 additions and 89 deletions

View File

@ -373,6 +373,11 @@ export default {
this.$prompt("请输入模型类型", "修改模型类型", {
confirmButtonText: "确定",
cancelButtonText: "取消",
inputValidator: (value) => {
// 验证规则:不能为空(不能是纯空白字符),其他内容都允许
return /.*\S+.*/.test(value);
},
inputErrorMessage: '请输入模型类型',
inputValue: type_name,
})
.then(({ value }) => {
@ -586,6 +591,11 @@ export default {
this.$prompt("", "修改军标", {
confirmButtonText: "确定",
cancelButtonText: "取消",
inputValidator: (value) => {
// 验证规则:不能为空(不能是纯空白字符),其他内容都允许
return /.*\S+.*/.test(value);
},
inputErrorMessage: '内容不能为空',
inputValue: row.name,
})
.then(({ value }) => {
@ -1305,7 +1315,9 @@ export default {
add_default({}, (res) => {
if (res == null) {
this.$message.success("添加完成,2秒后将重启系统");
setTimeout(() => {
window.clicknum = 0;
this.$sendElectronChanel("restart");
}, 2000);
}