fix bug for

This commit is contained in:
vincent 2019-05-09 16:42:09 +02:00
parent 2339bd4b03
commit b3aaff4d41

View File

@ -96,7 +96,7 @@ export default {
arraychaine.forEach((element) => { arraychaine.forEach((element) => {
if (element !== '') { if (element !== '') {
if (re.test(element)) { if (re.test(element)) {
const range = element.split('-'); const range = element.split('-').map(Number);
for (let i = range[0]; i <= range[1]; i += 1) { for (let i = range[0]; i <= range[1]; i += 1) {
this.$store.dispatch('getchaine', { num: i }); this.$store.dispatch('getchaine', { num: i });
} }