|
@@ -662,15 +662,12 @@ export default {
|
|
if (list.length == 0) {
|
|
if (list.length == 0) {
|
|
this.$message.error("请上传需要添加的banner");
|
|
this.$message.error("请上传需要添加的banner");
|
|
return;
|
|
return;
|
|
- } else if (this.bannerCourse === "") {
|
|
|
|
- this.$message.error("请填写选择banner的链接");
|
|
|
|
- return;
|
|
|
|
}
|
|
}
|
|
if (this.time()) {
|
|
if (this.time()) {
|
|
let params = [
|
|
let params = [
|
|
{
|
|
{
|
|
p: list[0].url,
|
|
p: list[0].url,
|
|
- url: this.bannerCourse.courseId,
|
|
|
|
|
|
+ url: "",
|
|
uid: this.userid,
|
|
uid: this.userid,
|
|
oid: this.updateOid,
|
|
oid: this.updateOid,
|
|
},
|
|
},
|
|
@@ -697,15 +694,12 @@ export default {
|
|
if (list.length == 0) {
|
|
if (list.length == 0) {
|
|
this.$message.error("请上传需要添加的banner");
|
|
this.$message.error("请上传需要添加的banner");
|
|
return;
|
|
return;
|
|
- } else if (this.bannerCourse === "") {
|
|
|
|
- this.$message.error("请填写选择banner的链接");
|
|
|
|
- return;
|
|
|
|
}
|
|
}
|
|
if (this.time()) {
|
|
if (this.time()) {
|
|
let params = [
|
|
let params = [
|
|
{
|
|
{
|
|
p: list[0].url,
|
|
p: list[0].url,
|
|
- url: this.bannerCourse.courseId,
|
|
|
|
|
|
+ url: "",
|
|
uid: this.userid,
|
|
uid: this.userid,
|
|
oid: this.updateOid,
|
|
oid: this.updateOid,
|
|
},
|
|
},
|