mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/learning-system-portal.git
synced 2025-12-16 22:36:43 +08:00
修改笔记
This commit is contained in:
@@ -262,7 +262,7 @@ export default {
|
|||||||
},
|
},
|
||||||
saveNote() {
|
saveNote() {
|
||||||
let that = this;
|
let that = this;
|
||||||
if (this.mynoteData.content == '') {
|
if (this.content_new == '') {
|
||||||
this.$message({ type: 'info', message: '您还没有书写笔记!', offset: 50 });
|
this.$message({ type: 'info', message: '您还没有书写笔记!', offset: 50 });
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
@@ -270,6 +270,10 @@ export default {
|
|||||||
this.mynoteData.courseName = this.data.name;
|
this.mynoteData.courseName = this.data.name;
|
||||||
this.mynoteData.openType = this.editRadio;
|
this.mynoteData.openType = this.editRadio;
|
||||||
if(this.isEdit) {
|
if(this.isEdit) {
|
||||||
|
if (this.mynoteData.content == '') {
|
||||||
|
this.$message({ type: 'info', message: '您还没有书写笔记!', offset: 50 });
|
||||||
|
return;
|
||||||
|
}
|
||||||
apiNote.update(this.mynoteData).then(res=>{
|
apiNote.update(this.mynoteData).then(res=>{
|
||||||
if(res.status == 200) {
|
if(res.status == 200) {
|
||||||
this.inAnimationText = '笔记编辑成功';
|
this.inAnimationText = '笔记编辑成功';
|
||||||
|
|||||||
Reference in New Issue
Block a user