增加报错兼容
This commit is contained in:
@@ -219,8 +219,8 @@ export default {
|
|||||||
this.isLoading = true
|
this.isLoading = true
|
||||||
this.instance.post(`/app/appcourseinfo/addOrUpdate`, {
|
this.instance.post(`/app/appcourseinfo/addOrUpdate`, {
|
||||||
...this.form,
|
...this.form,
|
||||||
videoUrl: this.form.courseType === '1' ? this.form.videoUrl[0].url : '',
|
videoUrl: this.form.courseType === '1' ? this.form.videoUrl[0]?.url : '',
|
||||||
pictureUrl: this.form.pictureUrl.length ? this.form.pictureUrl[0].url : ''
|
pictureUrl: this.form.pictureUrl.length ? this.form.pictureUrl[0]?.url : ''
|
||||||
}).then(res => {
|
}).then(res => {
|
||||||
if (res.code == 0) {
|
if (res.code == 0) {
|
||||||
this.$message.success('提交成功')
|
this.$message.success('提交成功')
|
||||||
|
|||||||
Reference in New Issue
Block a user