diff --git a/README.md b/README.md index 850aa21..86fb710 100644 --- a/README.md +++ b/README.md @@ -28,6 +28,7 @@ vite+react 实现,欢迎 star、issue、pr、fork(尽量标注原仓库地 - [ ] 多主题 - [ ] 计时 - [ ] 性能优化 +- [ ] BGM/音效 - [ ] 点击时的缓冲队列,优化交互动画效果 - [ ] 该游戏似乎涉嫌抄袭,考证后补充来源说明 diff --git a/src/App.css b/src/App.css index 5973a35..a6ce0b3 100644 --- a/src/App.css +++ b/src/App.css @@ -31,7 +31,7 @@ width: 12.5%; padding-bottom: 12.5%; position: absolute; - transition: 0.3s; + transition: 150ms; left: 0; top: 0; } diff --git a/src/App.tsx b/src/App.tsx index 622cbfd..70e1bdd 100644 --- a/src/App.tsx +++ b/src/App.tsx @@ -276,7 +276,7 @@ const App: FC = () => { checkCover(updateScene); setAnimating(true); - await waitTimeout(300); + await waitTimeout(150); const filterSame = updateQueue.filter((sb) => sb.icon === symbol.icon); diff --git a/vite.config.ts b/vite.config.ts index d7ec70e..bd0a2a4 100644 --- a/vite.config.ts +++ b/vite.config.ts @@ -4,4 +4,7 @@ import react from '@vitejs/plugin-react'; // https://vitejs.dev/config/ export default defineConfig({ plugins: [react()], + server: { + host: true, + }, });