首次提交
parent
5fc8887edc
commit
40b5ad3e0e
|
@ -48,7 +48,7 @@ export default {
|
|||
if (response.data.code == 200) {
|
||||
localStorage.token="bearer "+response.data.data.accessToken
|
||||
localStorage.userData= JSON.stringify(response.data.data)
|
||||
that.$router.push("/index");
|
||||
that.$router.push("/consumer");
|
||||
}else{
|
||||
that.$alert(response.data.msg,"登录失败", {
|
||||
confirmButtonText: "确定",
|
||||
|
|
|
@ -591,7 +591,12 @@ export default {
|
|||
'Content-Type': 'multipart/form-data'
|
||||
}
|
||||
}).then(function(res) {
|
||||
console.log(res);
|
||||
ElMessage({
|
||||
type: "错误",
|
||||
message:res.data.msg,
|
||||
});
|
||||
|
||||
|
||||
});
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue