4.0bug修改
This commit is contained in:
@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user