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
4fd1bcfe
Commit
4fd1bcfe
authored
Feb 08, 2023
by
TTS Kieu Tuan Anh
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
amend
parent
ac29aa6b
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
12 additions
and
12 deletions
+12
-12
index.vue
pages/posts/index.vue
+8
-8
index.vue
pages/products/index.vue
+3
-3
axios.js
plugins/axios.js
+1
-1
No files found.
pages/posts/index.vue
View file @
4fd1bcfe
...
...
@@ -34,7 +34,7 @@
<v-text-field
v-model=
"sTitle"
label=
"Title"
disabled
readonly
/>
</v-col>
<v-col
...
...
@@ -46,14 +46,15 @@
item-text=
"name"
item-value=
"id"
label=
"Category"
disabled
readonly
/>
</v-col>
<v-col
cols=
"12"
>
<v-text-field
v-model=
"sContent"
label=
"Content"
disabled
word-break=
"break-word"
readonly
/>
</v-col>
<v-col
...
...
@@ -64,8 +65,8 @@
:items=
"statusDefaul"
item-text=
"name"
item-value=
"id"
label=
"
Category
"
disabled
label=
"
Status
"
readonly
/>
</v-col>
<v-col
cols=
"12"
>
...
...
@@ -394,7 +395,7 @@ export default {
id
:
'
2
'
},
{
name
:
'
Un
P
ublish
'
,
name
:
'
Un
p
ublish
'
,
id
:
'
3
'
}
],
...
...
@@ -405,7 +406,7 @@ export default {
sCategoryId
:
''
,
sContent
:
''
,
sUserId
:
''
,
sStatus
:
null
,
sStatus
:
''
,
sImages
:
null
,
eId
:
''
,
eTitle
:
''
,
...
...
@@ -607,7 +608,6 @@ export default {
Authorization
:
`Bearer
${
this
.
$auth
.
$storage
.
getUniversal
(
'
token
'
)}
`
}
})
console
.
log
(
resp
.
data
)
this
.
sTitle
=
resp
.
data
.
data
.
title
this
.
sContent
=
resp
.
data
.
data
.
content
this
.
sCategoryId
=
resp
.
data
.
data
.
category_id
...
...
pages/products/index.vue
View file @
4fd1bcfe
...
...
@@ -57,6 +57,7 @@
<v-text-field
v-model=
"sDescription"
label=
"Description"
disabled
/>
</v-col>
<v-col
v-for=
"(image, index) in sImages"
:key=
"index"
cols=
"12"
>
...
...
@@ -432,7 +433,7 @@
<v-btn
color=
"blue darken-1"
text
@
click=
"dialog1 = false
; seeVariant()
"
@
click=
"dialog1 = false"
>
Close
</v-btn>
...
...
@@ -510,7 +511,6 @@ export default {
{
text
:
'
id
'
,
value
:
'
id
'
},
{
text
:
'
category ID
'
,
value
:
'
category_id
'
},
{
text
:
'
price
'
,
value
:
'
price
'
,
sortable
:
false
},
{
text
:
'
description
'
,
value
:
'
description
'
},
{
text
:
'
stock
'
,
value
:
'
stock
'
},
{
text
:
'
Actions
'
,
value
:
'
actions
'
,
sortable
:
false
}
],
...
...
@@ -536,7 +536,7 @@ export default {
sPrice
:
''
,
sDescription
:
''
,
sStock
:
''
,
sImages
:
null
,
sImages
:
[]
,
sVariants
:
[
{
color
:
''
,
...
...
plugins/axios.js
View file @
4fd1bcfe
export
default
function
({
$axios
},
inject
,
redirect
)
{
export
default
function
({
$axios
},
inject
,
redirect
)
{
$axios
.
onError
((
error
)
=>
{
if
(
error
.
response
.
status
===
500
)
{
redirect
(
'
/500
'
)
...
...
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