From f89a6b7d05cfd4e0125c4c883b8bafa023a92ce3 Mon Sep 17 00:00:00 2001 From: jim Date: Fri, 26 Jan 2018 15:17:23 +0800 Subject: [PATCH] fix #724 After registration, change the permission to user --- src/models/register.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/models/register.js b/src/models/register.js index 164ccae1..54c49633 100644 --- a/src/models/register.js +++ b/src/models/register.js @@ -1,4 +1,6 @@ import { fakeRegister } from '../services/api'; +import { setAuthority } from '../utils/authority'; +import { reloadAuthorized } from '../utils/Authorized'; export default { namespace: 'register', @@ -19,6 +21,8 @@ export default { reducers: { registerHandle(state, { payload }) { + setAuthority('user'); + reloadAuthorized(); return { ...state, status: payload.status, -- GitLab