-
Notifications
You must be signed in to change notification settings - Fork 9
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
base: master
Are you sure you want to change the base?
Conversation
</tr> | ||
</thead> | ||
<tbody> | ||
<tr v-for="product in products" :key="product.id"> |
There was a problem hiding this comment.
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) { |
There was a problem hiding this comment.
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) { |
There was a problem hiding this comment.
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') |
There was a problem hiding this comment.
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) |
There was a problem hiding this comment.
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
Push to new fork