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
MCMS
Commits
89b10818
Commit
89b10818
authored
Dec 11, 2020
by
xierz
Browse files
保存封面栏目文章的自定义模型不能即时刷新问题
parent
bf1499b9
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/main/webapp/WEB-INF/manager/cms/content/form.ftl
View file @
89b10818
...
...
@@ -391,29 +391,31 @@
that
.model.form.linkId
=
data
.data.id
;
that
.model.save
()
;
}
that
.
$notify
({
title
:
'成功'
,
message
:
'保存成功'
,
type
:
'
success
'
type
:
'
success
'
,
duration
:
1000
,
onClose
:
function
()
{
if
(
that
.returnIsShow
)
{
javascript
:
history
.go
(
-1
)
;
}
else
{
//如果是顶级封面或封面,则重新加载
,
避免文章和自定义模型重复保存
location
.reload
()
;
}
that
.saveDisabled
=
false
;
}
})
;
if
(
that
.returnIsShow
)
{
javascript
:
history
.go
(
-1
)
;
}
else
{
//如果是顶级封面或封面,则重新拿到当前封面
id
,
避免重复保存
that
.list
(
that
.form.categoryId
)
;
}
}
else
{
that
.
$notify
({
title
:
'失败'
,
message
:
data
.msg
,
type
:
'
warning
'
})
;
that
.saveDisabled
=
false
;
}
that
.saveDisabled
=
false
;
})
;
}
else
{
_
this
.activeName
=
'
form
';
...
...
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