瀏覽代碼

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

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
         })