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. 12
      .github/workflows/preview-deploy.yml
  3. 4
      .github/workflows/rebase.yml
  4. 1
      src/app.tsx

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

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

12
.github/workflows/preview-deploy.yml

@ -12,9 +12,9 @@ permissions:
jobs: jobs:
success: success:
permissions: permissions:
actions: read # for dawidd6/action-download-artifact to query and download artifacts actions: read # for dawidd6/action-download-artifact to query and download artifacts
issues: write # for actions-cool/maintain-one-comment to modify or create issue comments issues: write # for actions-cool/maintain-one-comment to modify or create issue comments
pull-requests: write # for actions-cool/maintain-one-comment to modify or create PR comments pull-requests: write # for actions-cool/maintain-one-comment to modify or create PR comments
runs-on: ubuntu-latest runs-on: ubuntu-latest
if: github.event.workflow_run.event == 'pull_request' && github.event.workflow_run.conclusion == 'success' if: github.event.workflow_run.event == 'pull_request' && github.event.workflow_run.conclusion == 'success'
steps: steps:
@ -70,9 +70,9 @@ jobs:
failed: failed:
permissions: permissions:
actions: read # for dawidd6/action-download-artifact to query and download artifacts actions: read # for dawidd6/action-download-artifact to query and download artifacts
issues: write # for actions-cool/maintain-one-comment to modify or create issue comments issues: write # for actions-cool/maintain-one-comment to modify or create issue comments
pull-requests: write # for actions-cool/maintain-one-comment to modify or create PR comments pull-requests: write # for actions-cool/maintain-one-comment to modify or create PR comments
runs-on: ubuntu-latest runs-on: ubuntu-latest
if: github.event.workflow_run.event == 'pull_request' && github.event.workflow_run.conclusion == 'failure' if: github.event.workflow_run.event == 'pull_request' && github.event.workflow_run.conclusion == 'failure'
steps: steps:

4
.github/workflows/rebase.yml

@ -8,8 +8,8 @@ permissions:
jobs: jobs:
rebase: rebase:
permissions: permissions:
contents: write # for cirrus-actions/rebase to push code to rebase contents: write # for cirrus-actions/rebase to push code to rebase
pull-requests: read # for cirrus-actions/rebase to get info about PR pull-requests: read # for cirrus-actions/rebase to get info about PR
name: Rebase name: Rebase
if: github.event.issue.pull_request != '' && contains(github.event.comment.body, '/rebase') if: github.event.issue.pull_request != '' && contains(github.event.comment.body, '/rebase')
runs-on: ubuntu-latest runs-on: ubuntu-latest

1
src/app.tsx

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

Loading…
Cancel
Save