@@ -32,7 +32,14 @@ export function getInfo() {
return request({
url: '/system/user/getInfo',
method: 'get'
- })
+ }).then(res => {
+ try {
+ if (!Array.isArray(res.pharmacyList) || res.pharmacyList.length === 0) {
+ res.pharmacyList = [{id: 18, name: '默认药房'}];
+ }
+ } catch (err) {}
+ return res;
+ });
}
// 退出方法