I try like this :
<template>
...
</template>
<script>
export default {
...
data() {
return {
tabs: [
{
sale:{
{
url: 'store/sale',
group: 'index'
},
{
url: 'store/confirm',
group: 'confirm'
},
},
purchase:{
{
url: '/profile/purchase',
group: 'payment'
},
{
url: '/profile/purchase/order',
group: 'order'
},
}
}
]
}
},
...
}
</script>
If the code executed, there exist error :
Uncaught Error: Module build failed: SyntaxError: Unexpected token
It seems the error occurred in the data
How can I solve the error?