File tree Expand file tree Collapse file tree 8 files changed +317
-248
lines changed
apps/workspace/module/managementPlatform/component/library
components/lubanTree/libraryTree Expand file tree Collapse file tree 8 files changed +317
-248
lines changed Original file line number Diff line number Diff line change 14
14
15
15
<script >
16
16
import axios from " axios" ;
17
- import { GetContent , UpdateGuideContent } from " @/common/service/apiGuide" ;
17
+ import { GetChapter , SaveChapter } from " @/common/service/apiGuide" ;
18
18
import { mavonEditor } from " mavon-editor" ;
19
19
import " mavon-editor/dist/css/index.css" ;
20
20
import " mavon-editor/dist/markdown/github-markdown.min.css" ;
21
21
export default {
22
- name: " guide " ,
22
+ name: " library " ,
23
23
components: {
24
24
mavonEditor,
25
25
},
@@ -47,12 +47,12 @@ export default {
47
47
},
48
48
methods: {
49
49
getChapter () {
50
- GetContent (this .$route .query .id ).then ((data ) => {
50
+ GetChapter (this .$route .query .id ).then ((data ) => {
51
51
this .source = data .result .content || " " ;
52
52
});
53
53
},
54
54
saveContent (value , render ) {
55
- UpdateGuideContent ({
55
+ SaveChapter ({
56
56
id: this .$route .query .id ,
57
57
content: value,
58
58
contentHtml: render,
@@ -65,7 +65,7 @@ export default {
65
65
var formdata = new FormData ();
66
66
formdata .append (" file" , $file);
67
67
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` ,
69
69
method: " post" ,
70
70
data: formdata,
71
71
headers: { " Content-Type" : " multipart/form-data" },
You can’t perform that action at this time.
0 commit comments