This commit is contained in:
parent
d7259fb9ce
commit
b1378d72b2
|
@ -154,7 +154,7 @@ export default class edittemplate extends React.Component{
|
|||
}
|
||||
|
||||
var re = new RegExp("^([1-9][0-9]*){1,3}$");
|
||||
if (!re.test(this.state.model.sort)) {
|
||||
if (this.state.isExchangePage && !re.test(this.state.model.sort)) {
|
||||
Notify.error("权重请输入正整数")
|
||||
return;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue