Commit 4fd1bcfe authored by TTS Kieu Tuan Anh's avatar TTS Kieu Tuan Anh

amend

parent ac29aa6b
......@@ -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: 'UnPublish',
name: 'Unpublish',
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
......
......@@ -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: '',
......
export default function ({ $axios }, inject, redirect) {
export default function ({ $axios }, inject, redirect ) {
$axios.onError((error) => {
if (error.response.status === 500) {
redirect('/500')
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment