From ce114e1f7e349559c1abd106b83d7595d8646393 Mon Sep 17 00:00:00 2001
From: zhangxiaoxu123 <819527061@qq.com>
Date: 星期五, 29 七月 2022 11:17:28 +0800
Subject: [PATCH] '日计划'
---
pages/login/login.vue | 15 +++++++++++++--
1 files changed, 13 insertions(+), 2 deletions(-)
diff --git a/pages/login/login.vue b/pages/login/login.vue
index 4fa24d9..7681ca0 100644
--- a/pages/login/login.vue
+++ b/pages/login/login.vue
@@ -24,12 +24,15 @@
formData:{
username:'fyy',
password:'123456!@#'
+ // username:'anjianwei',
+ // password:'123456'
}
};
},
methods:{
loginSubmit(){
- // console.log('login');
+ console.log('鐐瑰嚮鐧诲綍');
+ // console.log('login');
uni.showLoading({
title:'鐧诲綍涓�...'
});
@@ -46,14 +49,22 @@
setTokenType(token_type);
setRefreshToken(refresh_token);
setScope(scope);
+ this.$store.dispatch('menus')
redirectHome();
uni.hideLoading();
} catch (e) {
// error
console.log(e);
}
+ } else{
+ uni.showToast({
+ title:response.data.msg,
+ icon:'error',
+ duration:2000
+ })
}
}
+
}
};
</script>
@@ -96,7 +107,7 @@
}
.loginBtn {
margin-top: vww(80);
-
+
button {
background-color: #007aff;
color: #ffffff;
--
Gitblit v1.9.1