Commit 4b39d2b4 authored by Xuguangxing's avatar Xuguangxing

feat: 修复保存时trim报错

parent a8d4b856
......@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment