Skip to content

Commit 980ca2b

Browse files
committed
内置产品手册后端管理平台完成
1 parent 667d07e commit 980ca2b

File tree

8 files changed

+317
-248
lines changed

8 files changed

+317
-248
lines changed

web/src/apps/workspace/module/managementPlatform/component/library/index.vue

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -14,12 +14,12 @@
1414

1515
<script>
1616
import axios from "axios";
17-
import { GetContent, UpdateGuideContent } from "@/common/service/apiGuide";
17+
import { GetChapter, SaveChapter } from "@/common/service/apiGuide";
1818
import { mavonEditor } from "mavon-editor";
1919
import "mavon-editor/dist/css/index.css";
2020
import "mavon-editor/dist/markdown/github-markdown.min.css";
2121
export default {
22-
name: "guide",
22+
name: "library",
2323
components: {
2424
mavonEditor,
2525
},
@@ -47,12 +47,12 @@ export default {
4747
},
4848
methods: {
4949
getChapter() {
50-
GetContent(this.$route.query.id).then((data) => {
50+
GetChapter(this.$route.query.id).then((data) => {
5151
this.source = data.result.content || "";
5252
});
5353
},
5454
saveContent(value, render) {
55-
UpdateGuideContent({
55+
SaveChapter({
5656
id: this.$route.query.id,
5757
content: value,
5858
contentHtml: render,
@@ -65,7 +65,7 @@ export default {
6565
var formdata = new FormData();
6666
formdata.append("file", $file);
6767
axios({
68-
url: `http://${window.location.host}/api/rest_j/v1/dss/guide/admin/guidecontent/uploadImage`,
68+
url: `http://${window.location.host}/api/rest_j/v1/dss/guide/admin/guidechapter/uploadImage`,
6969
method: "post",
7070
data: formdata,
7171
headers: { "Content-Type": "multipart/form-data" },

0 commit comments

Comments
 (0)