fix: 播放器问题

This commit is contained in:
root 2025-07-11 11:28:57 +08:00
parent 6e62d72ff6
commit 47b156c68a
4 changed files with 20 additions and 25 deletions

View File

@ -21,7 +21,7 @@ tauri-build = { version = "2.3.0", features = [] }
serde_json = "1.0"
serde = { version = "1.0", features = ["derive"] }
log = "0.4"
tauri = { version = "2.6.2", features = [] }
tauri = { version = "2.6.2", features = ["protocol-asset"] }
tauri-plugin-log = "2"
tauri-plugin-dialog = "2"
tauri-plugin-fs = "2"

View File

@ -13,11 +13,7 @@ import ModelManagePage from './pages/ModelManagePage'
import AudioLibraryPage from './pages/AudioLibraryPage'
import MediaLibraryPage from './pages/MediaLibraryPage'
import KVTestPage from './pages/KVTestPage'
import { appDataDir } from '@tauri-apps/api/path'
function App() {
useEffect(() => {
console.log(appDataDir())
}, [])
return (
<Layout>
<Routes>

View File

@ -219,26 +219,6 @@ const VideoPlayer: React.FC<VideoPlayerProps> = ({
</div>
</div>
</div>
<style jsx>{`
.slider::-webkit-slider-thumb {
appearance: none;
height: 16px;
width: 16px;
border-radius: 50%;
background: #3b82f6;
cursor: pointer;
}
.slider::-moz-range-thumb {
height: 16px;
width: 16px;
border-radius: 50%;
background: #3b82f6;
cursor: pointer;
border: none;
}
`}</style>
</div>
)
}

View File

@ -94,3 +94,22 @@
.drop-zone.drag-over {
@apply border-primary-500 bg-primary-50;
}
.slider::-webkit-slider-thumb {
appearance: none;
height: 16px;
width: 16px;
border-radius: 50%;
background: #3b82f6;
cursor: pointer;
}
.slider::-moz-range-thumb {
height: 16px;
width: 16px;
border-radius: 50%;
background: #3b82f6;
cursor: pointer;
border: none;
}