首次提交

master
tangyi 2022-01-26 09:01:19 +08:00
parent 5fc8887edc
commit 40b5ad3e0e
2 changed files with 7 additions and 2 deletions

View File

@ -48,7 +48,7 @@ export default {
if (response.data.code == 200) { if (response.data.code == 200) {
localStorage.token="bearer "+response.data.data.accessToken localStorage.token="bearer "+response.data.data.accessToken
localStorage.userData= JSON.stringify(response.data.data) localStorage.userData= JSON.stringify(response.data.data)
that.$router.push("/index"); that.$router.push("/consumer");
}else{ }else{
that.$alert(response.data.msg,"登录失败", { that.$alert(response.data.msg,"登录失败", {
confirmButtonText: "确定", confirmButtonText: "确定",

View File

@ -591,7 +591,12 @@ export default {
'Content-Type': 'multipart/form-data' 'Content-Type': 'multipart/form-data'
} }
}).then(function(res) { }).then(function(res) {
console.log(res); ElMessage({
type: "错误",
message:res.data.msg,
});
}); });