|
@@ -73,6 +73,7 @@
|
|
|
this.form.deviceNo = device.getDeviceInfo().deviceId;
|
|
|
this.$u.api.login(this.form)
|
|
|
.then(res=>{
|
|
|
+ console.log('login',res)
|
|
|
this.$refs.uToast.show({
|
|
|
title: res.msg,
|
|
|
type: 'success',
|
|
@@ -93,8 +94,8 @@
|
|
|
this.$u.route('pages/index/index', {});
|
|
|
console.log('login',res)
|
|
|
}).catch(err=>{
|
|
|
- this.$refs.uToast.show({
|
|
|
- title: err.msg??'登录出错',
|
|
|
+ err.msg&&this.$refs.uToast.show({
|
|
|
+ title: err.msg,
|
|
|
type: 'error',
|
|
|
});
|
|
|
console.log('login ',err)
|