Commit 32de1461 authored by 李苏's avatar 李苏 💬

取消登录跳转,登录失败提示

parent 67f60ca7
......@@ -3,7 +3,7 @@ import {ACCESS_TOKEN} from '@/common/util/constants.js'
import configService from './config.service.js'
import tip from '@/common/util/tip.js';
import store from '@/store/index.js';
import Vue from 'vue'
let apiUrl = configService.apiUrl;
const getTokenStorage = () => {
......@@ -58,7 +58,11 @@ http.interceptor.response(async (response) => { /* 请求之后拦截器 */
// }
return response
}, (response) => {
// 请求错误做点什么
uni.showToast({
title: '请求失败,请检查网络。',
icon:'none',
duration: 2000
});
console.log("请求错误做点什么",response);
if (response) {
let data = response.data
......
......@@ -222,7 +222,7 @@
password: loginParams.encodePWD,
newPassword:md5(this.password)
}
this.loading=true;
// this.loading=true;
this.mLogin(params).then((res) => {
this.loading=false;
if(res.data.success){
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment