diff --git a/src/pages/exchangepage/edittemplate/main.js b/src/pages/exchangepage/edittemplate/main.js index 8d2256b6..4c79c101 100644 --- a/src/pages/exchangepage/edittemplate/main.js +++ b/src/pages/exchangepage/edittemplate/main.js @@ -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; }