Skip to content

Commit

Permalink
fix(admin): fix #121
Browse files Browse the repository at this point in the history
  • Loading branch information
lizheming committed Jan 4, 2021
1 parent 30dece9 commit 8ad1fde
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/admin/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@waline/admin",
"version": "0.5.0",
"version": "0.5.1",
"description": "management system for waline",
"main": "dist/admin.js",
"browser": "dist/admin.js",
Expand Down
2 changes: 1 addition & 1 deletion packages/admin/src/pages/login/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ export default function() {
const redirect = query.get('redirect') || (user.type !== 'administrator' ? '/ui/profile' : '/ui');
navigate(redirect, {replace: true});
}
}, []);
}, [user]);

const onSubmit = async function(e) {
e.preventDefault();
Expand Down

0 comments on commit 8ad1fde

Please sign in to comment.