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