Explorar el Código

请求头添加用户信息

zhangyu hace 5 años
padre
commit
b5219aa044
Se han modificado 1 ficheros con 1 adiciones y 0 borrados
  1. 1 0
      src/framework/layout/layout-store.js

+ 1 - 0
src/framework/layout/layout-store.js

@@ -111,6 +111,7 @@ export default {
                     // } else {
                     if (resp.Result == 'success') {
                         state.userInfo = { username: resp.Username }
+                        storage.set('user_name', resp.Username)
                         state.permissions = {}
                         if (resp.Permissions) {
                             resp.Permissions.forEach(p => (state.permissions[p] = true))