Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Sign in
Toggle navigation
K
kiaisoft_tuananh_nuxt
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
1
Issues
1
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
TTS Tran Viet Anh
kiaisoft_tuananh_nuxt
Commits
b3a1bf6a
Commit
b3a1bf6a
authored
Apr 14, 2023
by
Le Dinh Trung
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix products
parent
ed2989c1
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
17 deletions
+17
-17
index.vue
pages/home-page/index.vue
+17
-17
No files found.
pages/home-page/index.vue
View file @
b3a1bf6a
...
@@ -362,7 +362,7 @@ export default {
...
@@ -362,7 +362,7 @@ export default {
},
},
mounted
()
{
mounted
()
{
this
.
getCategories
()
this
.
getCategories
()
this
.
getNewProducts
()
//
this.getNewProducts()
},
},
methods
:
{
methods
:
{
getCategories
()
{
getCategories
()
{
...
@@ -380,23 +380,23 @@ export default {
...
@@ -380,23 +380,23 @@ export default {
.
catch
(
function
(
error
)
{
.
catch
(
function
(
error
)
{
console
.
log
(
error
)
console
.
log
(
error
)
})
})
},
getNewProducts
()
{
this
.
$axios
.
get
(
'
/guest/products/new-release/
'
,
{
headers
:
{
Authorization
:
`Bearer
${
this
.
$auth
.
$storage
.
getUniversal
(
'
token
'
)}
`
}
})
.
then
((
response
)
=>
{
this
.
product
=
response
.
data
.
data
})
.
catch
(
function
(
error
)
{
console
.
log
(
error
)
})
}
}
// getNewProducts () {
// this.$axios
// .get('/guest/products/new-release/', {
// headers: {
// Authorization: `Bearer ${this.$auth.$storage.getUniversal(
// 'token'
// )}`
// }
// })
// .then((response) => {
// this.product = response.data.data
// })
// .catch(function (error) {
// console.log(error)
// })
// }
}
}
}
}
</
script
>
</
script
>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment