|
|
@@ -1387,16 +1387,16 @@ export default {
|
|
|
},
|
|
|
// 确认发布
|
|
|
confirmPublish() {
|
|
|
- if (!this.selectedSubject) {
|
|
|
- this.$message.error('请选择学科');
|
|
|
+ if (!this.selectedSubject.length) {
|
|
|
+ this.$message.error(this.lang.ssSelectSubject);
|
|
|
return;
|
|
|
}
|
|
|
- if (!this.selectGrage) {
|
|
|
- this.$message.error('请选择年级');
|
|
|
+ if (!this.selectedGrade.length) {
|
|
|
+ this.$message.error(this.lang.ssSelectGrade);
|
|
|
return;
|
|
|
}
|
|
|
- if (!this.checkboxList2) {
|
|
|
- this.$message.error('请选择班级');
|
|
|
+ if (!this.checkboxList2.length) {
|
|
|
+ this.$message.error(this.lang.ssSelectClass2);
|
|
|
return;
|
|
|
}
|
|
|
|