修改提示

This commit is contained in:
daihh
2022-10-31 15:49:23 +08:00
parent f14d269fac
commit 29adce40d3

View File

@@ -94,7 +94,14 @@
saveInterest() {
let data = []
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
}
this.checkboxGroup.forEach(item=>{
@@ -143,6 +150,9 @@
min-width: 760px;
max-width: 960px;
}
.error-text{
color:red
}
</style>
<style scoped lang="scss">