添加case
This commit is contained in:
parent
cedba0f0d9
commit
b667fa8701
|
|
@ -17,7 +17,7 @@
|
|||
</el-form-item>
|
||||
<el-form-item class="loginBtn">
|
||||
<el-button type="primary" style="margin: 10px" @click="submitForm(loginRef)" >登录</el-button>
|
||||
<el-button type="info" style="margin: 10px">取消</el-button>
|
||||
<el-button type="info" style="margin: 10px" @click="clear">重置</el-button>
|
||||
</el-form-item>
|
||||
|
||||
|
||||
|
|
@ -75,11 +75,15 @@ export default {
|
|||
}
|
||||
})
|
||||
} else {
|
||||
ElMessage.error("登录成功");
|
||||
ElMessage.error("服务器内部连接错误!");
|
||||
return false;
|
||||
}
|
||||
})
|
||||
}
|
||||
const clear =()=>{
|
||||
param.username = ""
|
||||
param.password = ""
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
|
@ -87,7 +91,8 @@ export default {
|
|||
rules,
|
||||
loginRef,
|
||||
submitForm,
|
||||
param
|
||||
param,
|
||||
clear
|
||||
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue