|
@@ -240,7 +240,12 @@ export async function getBigPush(type,symData,save){
|
|
|
export function deleteSelectedLabels(state,action){
|
|
|
let res = Object.assign({}, state);
|
|
|
const {start,end} = action;
|
|
|
- res.data.splice(start,end-start);
|
|
|
+ if(start>end){ //从后往前选中
|
|
|
+ res.data.splice(end,start-end);
|
|
|
+ }else{
|
|
|
+ res.data.splice(start,end-start);
|
|
|
+ }
|
|
|
+
|
|
|
res.update = Math.random();
|
|
|
return res;
|
|
|
}
|