diff --git a/src/views/login/index.vue b/src/views/login/index.vue index 3e18be0..f8b2d1c 100644 --- a/src/views/login/index.vue +++ b/src/views/login/index.vue @@ -133,8 +133,9 @@ function validatePassword(rule: any, value: any, callback: any) { function getORGFn() { getORG({ orgNo: null}).then((res: any) => { - console.log(res) - state.orgList = res.resultObj; + if (res && res.resultObj) { + state.orgList = res.resultObj + } }).catch(() => { }); }