@@ -93,7 +93,7 @@ function mapDispatchToProps(dispatch) {
for(let j in items){
tempTotal += items[j].name ;
}
- if((tempTotal.length+ tempTotal.length-1) >= config.limited){
+ if((tempTotal.length+ items.length-1) >= config.limited){
Notify.info(config.limitText);
return ;
@@ -112,6 +112,7 @@ export default function(state=initState,action){
case MAIN_REMOVE_SPAN:
res.data = [];
res.saveText = [];
+ res.mainIds = [];
res.editClear = true;
return res;
default: