空间首页增加列表查询,编辑查看优化
This commit is contained in:
@@ -63,12 +63,17 @@
|
||||
toast.warn("标题不能为空");
|
||||
return;
|
||||
}
|
||||
var preview = this.editor.txt.text();
|
||||
if (preview.length > 200) {
|
||||
preview = preview.substring(0, 200) + '...';
|
||||
}
|
||||
var param = {
|
||||
spaceId: app.parentPath.spaceId,
|
||||
parentId: parentId,
|
||||
id: app.wikiPage.id,
|
||||
name: app.newPageTitle,
|
||||
content: this.editor.txt.html()
|
||||
content: this.editor.txt.html(),
|
||||
preview: preview,
|
||||
};
|
||||
this.common.post(this.apilist1.updatePage, param, function (json) {
|
||||
toast.success("保存成功!");
|
||||
|
||||
@@ -253,7 +253,7 @@
|
||||
this.common.post(this.apilist1.updatePage, param, function (json) {
|
||||
// 重新加载左侧列表,跳转到展示页面
|
||||
global.vue.$app.doGetPageList(null);
|
||||
app.$router.push({path: '/home'});
|
||||
app.$router.push({path: '/home', query: {spaceId: app.nowClickPath.spaceId}});
|
||||
});
|
||||
});
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user