|
@@ -30,8 +30,8 @@
|
|
pic:'https://uviewui.com/common/logo.png',
|
|
pic:'https://uviewui.com/common/logo.png',
|
|
userInfo:[],
|
|
userInfo:[],
|
|
form:{
|
|
form:{
|
|
- name:'',
|
|
|
|
- password:'',
|
|
|
|
|
|
+ name:'9345',
|
|
|
|
+ password:'000000',
|
|
passCheck:false,
|
|
passCheck:false,
|
|
deviceNo: ''
|
|
deviceNo: ''
|
|
},
|
|
},
|
|
@@ -73,7 +73,6 @@
|
|
this.form.deviceNo = device.getDeviceInfo().deviceId;
|
|
this.form.deviceNo = device.getDeviceInfo().deviceId;
|
|
this.$u.api.login(this.form)
|
|
this.$u.api.login(this.form)
|
|
.then(res=>{
|
|
.then(res=>{
|
|
- console.log('login',res)
|
|
|
|
this.$refs.uToast.show({
|
|
this.$refs.uToast.show({
|
|
title: res.msg,
|
|
title: res.msg,
|
|
type: 'success',
|
|
type: 'success',
|
|
@@ -94,6 +93,13 @@
|
|
this.$u.route('pages/index/index', {});
|
|
this.$u.route('pages/index/index', {});
|
|
console.log('login',res)
|
|
console.log('login',res)
|
|
}).catch(err=>{
|
|
}).catch(err=>{
|
|
|
|
+ if(err.errMsg){
|
|
|
|
+ this.$refs.uToast.show({
|
|
|
|
+ title: '请检查网络',
|
|
|
|
+ type: 'error',
|
|
|
|
+ });
|
|
|
|
+ return false;
|
|
|
|
+ };
|
|
err.msg&&this.$refs.uToast.show({
|
|
err.msg&&this.$refs.uToast.show({
|
|
title: err.msg,
|
|
title: err.msg,
|
|
type: 'error',
|
|
type: 'error',
|