Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Farhan Haryawan #6

Open
wants to merge 14 commits into
base: master
Choose a base branch
from

Conversation

farhanhrywn
Copy link

Push to new fork

</tr>
</thead>
<tbody>
<tr v-for="product in products" :key="product.id">

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

baiknya tiap tr nya jadi satu komponen lagi ya

console.log(err)
})
},
logout (context) {

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ini ga perlu dibikin di store gpp soalnya dia ga ada butuh ngubah state juga kan

localStorage.removeItem('access_token')
router.push('/')
},
toAddPage (context) {

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ni ga perlu dibikin di store gpp soalnya dia ga ada butuh ngubah state juga kan

router.push('add')
},
toHomePage (context) {
router.push('home')

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ni ga perlu dibikin di store gpp soalnya dia ga ada butuh ngubah state juga kan

context.dispatch('fetchProducts')
})
.catch(err => {
console.log(err)

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

next time error baiknya di handle misal ditampilkan notifikasinya

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants