mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/learning-system-portal.git
synced 2025-12-15 05:46:43 +08:00
修改提示
This commit is contained in:
@@ -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">
|
||||
|
||||
|
||||
Reference in New Issue
Block a user