diff options
author | crupest <crupest@outlook.com> | 2020-11-16 16:04:26 +0800 |
---|---|---|
committer | crupest <crupest@outlook.com> | 2020-11-16 16:04:26 +0800 |
commit | ffa5d76316ccec4edc307d0432ef10fb18436c63 (patch) | |
tree | de0f211800e29d5e6ee250d7955c11e86f4a2a10 /FrontEnd | |
parent | 6681586505bccac7ef2cb0df850c4fde10eba8b4 (diff) | |
download | timeline-ffa5d76316ccec4edc307d0432ef10fb18436c63.tar.gz timeline-ffa5d76316ccec4edc307d0432ef10fb18436c63.tar.bz2 timeline-ffa5d76316ccec4edc307d0432ef10fb18436c63.zip |
fix: Fix 404 page double nav bug.
Diffstat (limited to 'FrontEnd')
-rw-r--r-- | FrontEnd/.vscode/preview.yml | 10 | ||||
-rw-r--r-- | FrontEnd/sandbox.config.json | 11 | ||||
-rw-r--r-- | FrontEnd/src/app/App.tsx | 8 |
3 files changed, 1 insertions, 28 deletions
diff --git a/FrontEnd/.vscode/preview.yml b/FrontEnd/.vscode/preview.yml deleted file mode 100644 index b2cf70af..00000000 --- a/FrontEnd/.vscode/preview.yml +++ /dev/null @@ -1,10 +0,0 @@ -
-# .vscode/preview.yml
-autoOpen: false # 打开工作空间时是否自动开启所有应用的预览
-apps:
- - port: 3000 # 应用的端口
- run: yarn start:mock # 应用的启动命令
- root: . # 应用的启动目录
- name: timeline # 应用名称
- description: Timeline App # 应用描述
- autoOpen: false # 打开工作空间时是否自动开启预览(优先级高于根级 autoOpen)
diff --git a/FrontEnd/sandbox.config.json b/FrontEnd/sandbox.config.json deleted file mode 100644 index 90f99b70..00000000 --- a/FrontEnd/sandbox.config.json +++ /dev/null @@ -1,11 +0,0 @@ -{
- "infiniteLoopProtection": true,
- "hardReloadOnChange": false,
- "view": "browser",
- "container": {
- "port": 3000,
- "startScript": "start:mock"
- },
- "port": 3000,
- "startScript": "start:mock"
-}
diff --git a/FrontEnd/src/app/App.tsx b/FrontEnd/src/app/App.tsx index 4e53d4da..01b1883b 100644 --- a/FrontEnd/src/app/App.tsx +++ b/FrontEnd/src/app/App.tsx @@ -15,13 +15,7 @@ import { dataStorage } from "./services/common"; import { userService, useRawUser } from "./services/user"; const NoMatch: React.FC = () => { - return ( - <> - <AppBar /> - <div style={{ height: 56 }} /> - <div>Ah-oh, 404!</div> - </> - ); + return <div>Ah-oh, 404!</div>; }; const LazyAdmin = React.lazy( |