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.addForm.status = 2;
|
||||
let content= this.addForm.content.replace(/<.*?>/ig,"");
|
||||
console.log(content)
|
||||
if(content.trim() == ''){
|
||||
// let content= this.addForm.content.replace(/<.*?>/ig,"");
|
||||
// let content= this.addForm.content.replace(/[^\u4E00-\u9FA5|\d|\a-zA-Z|\r\n\s,.?!,。?!<>…—&$=()-+/*{}[\]]|\r\n\s/g,"");
|
||||
if(this.addForm.content.trim() == ''){
|
||||
this.$message('您输入的内容为空,无法发布')
|
||||
type: 'warning'
|
||||
this.loading=false
|
||||
return
|
||||
}
|
||||
this.addForm.content=content.trim()
|
||||
console.log(this.addForm.content,'iguighui')
|
||||
this.addForm.content=this.addForm.content.trim()
|
||||
apiArticle.save(this.addForm).then(res => {
|
||||
if (res.status == 200) {
|
||||
if(res.message=='服务处理成功'){
|
||||
|
||||
@@ -96,8 +96,8 @@ export default {
|
||||
},
|
||||
saveSuccess(data){
|
||||
this.diagSync=false;
|
||||
this.articleList.pageIndex = 1;
|
||||
this.articleList.list = [];
|
||||
this.pageData.pageIndex = 1;
|
||||
this.pageData.list = [];
|
||||
this.getArticleList();
|
||||
},
|
||||
//获取文章列表数据
|
||||
|
||||
Reference in New Issue
Block a user