Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
jinli gu
Litemall
Commits
a749e9c9
Commit
a749e9c9
authored
Nov 10, 2018
by
Junling Bu
Browse files
fix[litemall-admin-api]: 编辑类目以后,需要及时更新前端保存的L1目录
parent
dfddf82c
Changes
1
Hide whitespace changes
Inline
Side-by-side
litemall-admin/src/views/mall/category.vue
View file @
a749e9c9
...
...
@@ -263,6 +263,8 @@ export default {
if
(
valid
)
{
createCategory
(
this
.
dataForm
).
then
(
response
=>
{
this
.
list
.
unshift
(
response
.
data
.
data
)
// 更新L1目录
this
.
getCatL1
()
this
.
dialogFormVisible
=
false
this
.
$notify
.
success
({
title
:
'
成功
'
,
...
...
@@ -296,6 +298,8 @@ export default {
break
}
}
// 更新L1目录
this
.
getCatL1
()
this
.
dialogFormVisible
=
false
this
.
$notify
.
success
({
title
:
'
成功
'
,
...
...
@@ -312,6 +316,8 @@ export default {
},
handleDelete
(
row
)
{
deleteCategory
(
row
).
then
(
response
=>
{
// 更新L1目录
this
.
getCatL1
()
this
.
$notify
.
success
({
title
:
'
成功
'
,
message
:
'
删除成功
'
...
...
Write
Preview
Supports
Markdown
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