diff --git a/src/store/modules/user.js b/src/store/modules/user.js index c151568..5db6ce0 100644 --- a/src/store/modules/user.js +++ b/src/store/modules/user.js @@ -88,7 +88,7 @@ } else { reject('该用户无角色') } - if (data.deptId) { + if (data.deptId || data.deptId === 0) { commit('SET_DEPTID', data.deptId) commit('SET_DEPTNAME', data.deptName) } else { diff --git a/src/store/modules/user.js b/src/store/modules/user.js index c151568..5db6ce0 100644 --- a/src/store/modules/user.js +++ b/src/store/modules/user.js @@ -88,7 +88,7 @@ } else { reject('该用户无角色') } - if (data.deptId) { + if (data.deptId || data.deptId === 0) { commit('SET_DEPTID', data.deptId) commit('SET_DEPTNAME', data.deptName) } else { diff --git a/static/eye/eye.html b/static/eye/eye.html index 011d956..720c535 100644 --- a/static/eye/eye.html +++ b/static/eye/eye.html @@ -14,29 +14,13 @@
- + - + - + - - - - -
- - @@ -49,7 +33,7 @@
- +
@@ -58,8 +42,6 @@