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
bc2d5e91
Commit
bc2d5e91
authored
Jan 21, 2023
by
TTS Kieu Tuan Anh
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add update category instant
parent
05ade267
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
3 deletions
+7
-3
categories.vue
pages/home/categories.vue
+7
-3
No files found.
pages/home/categories.vue
View file @
bc2d5e91
...
@@ -234,7 +234,7 @@ export default {
...
@@ -234,7 +234,7 @@ export default {
name
:
""
,
name
:
""
,
id
:
""
,
id
:
""
,
ordering
:
""
,
ordering
:
""
,
status
:
""
,
parent_id
:
""
,
created_at
:
""
,
created_at
:
""
,
updated_at
:
""
,
updated_at
:
""
,
},
},
...
@@ -384,6 +384,7 @@ export default {
...
@@ -384,6 +384,7 @@ export default {
this
.
eOrdering
=
item
.
ordering
,
this
.
eOrdering
=
item
.
ordering
,
this
.
eParentId
=
item
.
parent_id
,
this
.
eParentId
=
item
.
parent_id
,
this
.
eImage
=
item
.
images
,
this
.
eImage
=
item
.
images
,
this
.
editedIndex
=
this
.
categories
.
indexOf
(
item
),
console
.
log
(
this
?.
eID
);
console
.
log
(
this
?.
eID
);
console
.
log
(
item
);
console
.
log
(
item
);
},
},
...
@@ -410,7 +411,10 @@ export default {
...
@@ -410,7 +411,10 @@ export default {
self.$toast.success('User updated successfully!',{
self.$toast.success('User updated successfully!',{
duration: 3000
duration: 3000
});
});
console.log(response);
console.log(response)
this.editedItem = response.data.data
this.$bvModal.hide('modal-edit')
Object.assign(this.categories[this.editedIndex], this.editedItem)
})
})
} catch(error){
} catch(error){
console.log(error)
console.log(error)
...
...
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