Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Q
quantum-blocks
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
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
ui
quantum-blocks
Commits
4b39d2b4
Commit
4b39d2b4
authored
Oct 19, 2022
by
Xuguangxing
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat: 修复保存时trim报错
parent
a8d4b856
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
8 deletions
+10
-8
index.ts
app/web/page/editor/view/dashboard/index.ts
+10
-8
No files found.
app/web/page/editor/view/dashboard/index.ts
View file @
4b39d2b4
...
...
@@ -102,6 +102,7 @@ export default class DashBoard extends Mixins(ContextMenuMixin, GoodsTabsMixin,
const
pageInfo
=
{
diversion
,
page
:
JSON
.
stringify
(
pageData
),
author
:
user
?.
account
,
isPublish
,
pageName
,
pageDescribe
,
pageKeywords
,
coverImage
,
isTemplate
,
shareCoverImage
,
shareOpenMethod
,
validStartTime
,
validEndTime
,
redirectUrl
}
as
pageInfo
;
if
(
this
.
uuid
)
{
pageInfo
.
uuid
=
this
.
uuid
;
}
pageInfo
.
redirectUrl
=
pageInfo
.
redirectUrl
&&
typeof
pageInfo
.
redirectUrl
==
'
string
'
?
pageInfo
.
redirectUrl
.
trim
()
:
''
;
if
(
pageInfo
.
redirectUrl
.
length
)
{
if
(
pageInfo
.
redirectUrl
.
indexOf
(
'
https://
'
)
!=
0
&&
pageInfo
.
redirectUrl
.
indexOf
(
'
xyqb://
'
)
!=
0
)
{
// 校验活动结束地址链接配置是否满足https和xyqb协议
this
.
$Notice
.
error
({
...
...
@@ -111,6 +112,7 @@ export default class DashBoard extends Mixins(ContextMenuMixin, GoodsTabsMixin,
this
.
showSubmitPopup
=
false
;
return
;
}
}
await
this
.
savePageData
({
pageInfo
,
pageData
:
this
.
pageData
});
if
(
this
.
uuid
)
{
await
this
.
getPageDate
({
pageId
:
this
.
uuid
});
}
this
.
showSubmitPopup
=
false
;
...
...
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