mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/learning-system-portal.git
synced 2025-12-17 14:56:44 +08:00
修改提示
This commit is contained in:
@@ -94,7 +94,14 @@
|
|||||||
saveInterest() {
|
saveInterest() {
|
||||||
let data = []
|
let data = []
|
||||||
if(this.checkboxGroup.length < 3) {
|
if(this.checkboxGroup.length < 3) {
|
||||||
this.$message.error('至少选择三个兴趣偏好!')
|
this.$message({
|
||||||
|
type:'error',
|
||||||
|
dangerouslyUseHTMLString:true,
|
||||||
|
message: '<span style="color:red">至少选择三个兴趣偏好!</span>',
|
||||||
|
iconClass:'error-text',
|
||||||
|
center: true
|
||||||
|
});
|
||||||
|
//this.$message.error('至少选择三个兴趣偏好!')
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
this.checkboxGroup.forEach(item=>{
|
this.checkboxGroup.forEach(item=>{
|
||||||
@@ -143,6 +150,9 @@
|
|||||||
min-width: 760px;
|
min-width: 760px;
|
||||||
max-width: 960px;
|
max-width: 960px;
|
||||||
}
|
}
|
||||||
|
.error-text{
|
||||||
|
color:red
|
||||||
|
}
|
||||||
</style>
|
</style>
|
||||||
<style scoped lang="scss">
|
<style scoped lang="scss">
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user