mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/learning-system-portal.git
synced 2025-12-11 03:46:44 +08:00
提交
This commit is contained in:
@@ -139,16 +139,15 @@ export default {
|
|||||||
}
|
}
|
||||||
this.loading=true;
|
this.loading=true;
|
||||||
this.addForm.status = 2;
|
this.addForm.status = 2;
|
||||||
let content= this.addForm.content.replace(/<.*?>/ig,"");
|
// let content= this.addForm.content.replace(/<.*?>/ig,"");
|
||||||
console.log(content)
|
// let content= this.addForm.content.replace(/[^\u4E00-\u9FA5|\d|\a-zA-Z|\r\n\s,.?!,。?!<>…—&$=()-+/*{}[\]]|\r\n\s/g,"");
|
||||||
if(content.trim() == ''){
|
if(this.addForm.content.trim() == ''){
|
||||||
this.$message('您输入的内容为空,无法发布')
|
this.$message('您输入的内容为空,无法发布')
|
||||||
type: 'warning'
|
type: 'warning'
|
||||||
this.loading=false
|
this.loading=false
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
this.addForm.content=content.trim()
|
this.addForm.content=this.addForm.content.trim()
|
||||||
console.log(this.addForm.content,'iguighui')
|
|
||||||
apiArticle.save(this.addForm).then(res => {
|
apiArticle.save(this.addForm).then(res => {
|
||||||
if (res.status == 200) {
|
if (res.status == 200) {
|
||||||
if(res.message=='服务处理成功'){
|
if(res.message=='服务处理成功'){
|
||||||
|
|||||||
@@ -96,8 +96,8 @@ export default {
|
|||||||
},
|
},
|
||||||
saveSuccess(data){
|
saveSuccess(data){
|
||||||
this.diagSync=false;
|
this.diagSync=false;
|
||||||
this.articleList.pageIndex = 1;
|
this.pageData.pageIndex = 1;
|
||||||
this.articleList.list = [];
|
this.pageData.list = [];
|
||||||
this.getArticleList();
|
this.getArticleList();
|
||||||
},
|
},
|
||||||
//获取文章列表数据
|
//获取文章列表数据
|
||||||
|
|||||||
Reference in New Issue
Block a user