|
@@ -60,7 +60,6 @@ export default {
|
|
|
result = result1[result1.length - 1];
|
|
|
}
|
|
|
this.iconCheck(result)
|
|
|
- this.callback(result)
|
|
|
},
|
|
|
error: function (res) {
|
|
|
console.log(res, 'error++++++++++');
|
|
@@ -69,7 +68,7 @@ export default {
|
|
|
},
|
|
|
async iconCheck(result) {
|
|
|
const res = await appPermissionChecks({ expressNo: result, deliveryPeopleId: localStorage.getItem('courierUserId') })
|
|
|
- if (Object.keys(res.data).length > 0) {
|
|
|
+ if (!!res.data) {
|
|
|
this.callback(res.data.expressNo)
|
|
|
} else {
|
|
|
Toast('不在派送范围')
|