소스 검색

编辑内容后刷新语料库信息

natasha 1 년 전
부모
커밋
548e7646b8
1개의 변경된 파일13개의 추가작업 그리고 7개의 파일을 삭제
  1. 13 7
      src/views/content_manage/newspaper_manage/CheckArticle.vue

+ 13 - 7
src/views/content_manage/newspaper_manage/CheckArticle.vue

@@ -56,7 +56,7 @@
 //例如:import 《组件名称》from ‘《组件路径》';
 import Header from "../../../components/Header.vue";
 import Breadcrumb from '../../../components/Breadcrumb.vue';
-import { getLogin } from "@/api/ajax";
+import { getLogin, requestGet } from "@/api/ajax";
 import tinymce from "tinymce/tinymce";
 import Editor from "@tinymce/tinymce-vue";
 import "tinymce/icons/default/icons";
@@ -188,12 +188,18 @@ export default {
         data.art_org_content = this.articleForm.art_content.trim()
         getLogin(MethodName, data)
         .then((res) => {
-            this.saveLoaing = false
-            if(res.status===1){
-                this.$message.success('文章内容修改成功')
-                this.getArticleInfo()
-                this.editArticleFlag = !this.editArticleFlag
-            }
+            requestGet('/PaperServer/_test_/refreshOneArtCorpusDataFromContent',{
+                id: this.id
+            }).then((res) => {
+                this.saveLoaing = false
+                if(res.status===1){
+                    this.$message.success('文章内容修改成功')
+                    this.getArticleInfo()
+                    this.editArticleFlag = !this.editArticleFlag
+                }
+            }).catch(()=>{
+                this.saveLoaing = false
+            })
         }).catch(()=>{
             this.saveLoaing = false
         })