Skip to content

Commit

Permalink
fix(login): login issues & contract monitor (#280)
Browse files Browse the repository at this point in the history
  • Loading branch information
DLHTX authored Oct 17, 2023
1 parent 1701448 commit 24139c8
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 1 deletion.
11 changes: 11 additions & 0 deletions src/components/IDE/Monitor/ContractLogs/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,17 @@ export const CreateContractLogButton = observer(() => {
const ids = w3s.project.curProject.contractLogs.map((item) => String(item.f_contractlog_id));
return (
<Flex>
<Button
mr={2}
h="32px"
size="sm"
{...defaultButtonStyle}
onClick={async () => {
eventBus.emit('contractlog.create');
}}
>
Refresh
</Button>
<Button
mr={2}
h="32px"
Expand Down
4 changes: 3 additions & 1 deletion src/pages/_app.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,9 @@ function MyApp({ Component, pageProps }: AppProps) {

if (token) {
if (['/login'].includes(router.pathname)) {
NextRouter.replace('/');
console.log('user.login');
w3s.actions.goHome();
NextRouter.push('/');
}
w3s.init();
}
Expand Down

0 comments on commit 24139c8

Please sign in to comment.