[Vuejs]-How can I make two array in data vue.js 2?

2👍

This is a syntax error:

sale:{
      {
        url: 'store/sale',
        group: 'index'
      },
      {
        url: 'store/confirm',
        group: 'confirm'
      },
     }

Same with purchase:{{})

I suspect you want those to be arrays (made with [ ]) not objects (with { }). Maybe this is what you are trying to do:

sale:[
      {
        url: 'store/sale',
        group: 'index'
      },
      {
        url: 'store/confirm',
        group: 'confirm'
      },
     ],
purchases[{
  // etc.
     }
    ]
👤Mark

Leave a comment