This commit is contained in:
@fawn-nine
2024-08-28 17:28:14 +08:00
parent 3227a6542a
commit a4b86b0220
9 changed files with 261 additions and 125 deletions

View File

@@ -82,7 +82,7 @@ import $http from '@/config/requestConfig.js';
playData: {},
//手机号账号
form: {
id: '', // 作业或者医案id
id: undefined, // 作业或者医案id
classId: undefined,
display:'1',
content: '', // 描述
@@ -131,7 +131,7 @@ import $http from '@/config/requestConfig.js';
//第一次加载
onLoad(e) {
console.log('收到的值', e);
if(e.sort != 'undefined'){
if(e.sort != 'undefined' && e.sort){
this.form.sort = e.sort
}
this.pageType = e.type
@@ -300,7 +300,7 @@ import $http from '@/config/requestConfig.js';
"title": this.form.title,
"content": this.form.content,
"img": this.form.img,
"sort": this.form.sort ? parseInt(this.form.sort)+1 : undefined
"sort": this.form.sort && !this.form.id ? parseInt(this.form.sort)+1 : undefined
},
header: { //默认 无 说明:请求头
'Content-Type': 'application/json'