Browse Source

chore: remove unuse code

pull/9986/head
chenshuai2144 4 years ago
parent
commit
75b4034147
  1. 2
      .github/workflows/issue-open-check.yml
  2. 1
      src/app.tsx

2
.github/workflows/issue-open-check.yml

@ -28,7 +28,7 @@ jobs:
- if: steps.check.outputs.check-result == 'true'
uses: actions-cool/issues-similarity-analysis@v1.1.0
with:
filter-threshold: 0.6
filter-threshold: 0.4
title-excludes: '🐛[BUG], 👑 [需求], 🧐[问题]'
comment-title: '### 以下的 Issues 可能会帮助到你 / The following issues may help you'
show-footer: false

1
src/app.tsx

@ -55,7 +55,6 @@ export const layout: RunTimeLayoutConfig = ({ initialState, setInitialState }) =
footerRender: () => <Footer />,
onPageChange: () => {
const { location } = history;
console.log(history);
// 如果没有登录,重定向到 login
if (!initialState?.currentUser && location.pathname !== loginPath) {
history.push(loginPath);

Loading…
Cancel
Save