Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
C
cms_sys
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
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
西魏
cms_sys
Commits
89b10818
Commit
89b10818
authored
Dec 11, 2020
by
xierz
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
保存封面栏目文章的自定义模型不能即时刷新问题
parent
bf1499b9
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
10 deletions
+12
-10
form.ftl
src/main/webapp/WEB-INF/manager/cms/content/form.ftl
+12
-10
No files found.
src/main/webapp/WEB-INF/manager/cms/content/form.ftl
View file @
89b10818
...
@@ -391,29 +391,31 @@
...
@@ -391,29 +391,31 @@
that
.
model
.
form
.
linkId
=
data
.
data
.
id
;
that
.
model
.
form
.
linkId
=
data
.
data
.
id
;
that
.
model
.
save
();
that
.
model
.
save
();
}
}
that
.
$notify
({
that
.
$notify
({
title
:
'成功'
,
title
:
'成功'
,
message
:
'保存成功'
,
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
{
}
else
{
that
.
$notify
({
that
.
$notify
({
title
:
'失败'
,
title
:
'失败'
,
message
:
data
.
msg
,
message
:
data
.
msg
,
type
:
'warning'
type
:
'warning'
});
});
that
.
saveDisabled
=
false
;
}
}
that
.
saveDisabled
=
false
;
});
});
}
else
{
}
else
{
_this
.
activeName
=
'form'
;
_this
.
activeName
=
'form'
;
...
...
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