首页-国家列表-表单校验
This commit is contained in:
@@ -268,13 +268,13 @@ const closeEditDialog = () => {
|
|||||||
function validObj (obj) {
|
function validObj (obj) {
|
||||||
let valid = false;
|
let valid = false;
|
||||||
try {
|
try {
|
||||||
if (!obj.isTop || !obj.isHome) {
|
if (undefined != obj.isHome && !obj.isTop) {
|
||||||
obj.seq = 0;
|
obj.seq = 0;
|
||||||
obj.topStart = undefined;
|
obj.topStart = undefined;
|
||||||
obj.topEnd = undefined;
|
obj.topEnd = undefined;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (obj.isHome || obj.isTop) {
|
if (obj.isTop) {
|
||||||
if (obj.seq <= 0) {
|
if (obj.seq <= 0) {
|
||||||
throw new Error('请输入正确的置顶序号');
|
throw new Error('请输入正确的置顶序号');
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user