This commit is contained in:
root 2025-07-11 17:22:18 +08:00
parent 78c0d3d265
commit e7f6ea07ad
1 changed files with 25 additions and 25 deletions

View File

@ -19,9 +19,7 @@ import PythonCoreTestPage from './pages/PythonCoreTestPage'
import PythonEnvManagerPage from './pages/PythonEnvManagerPage'
import * as path from '@tauri-apps/api/path';
import { convertFileSrc } from '@tauri-apps/api/core'
function App() {
async function testPath(){
async function testPath() {
console.log({
appCacheDir: await path.appCacheDir(),
appConfigDir: await path.appConfigDir(),
@ -44,9 +42,11 @@ function App() {
const mp4 = await path.join(await path.publicDir(), '1.mp4')
const url = convertFileSrc(mp4)
console.log({mp4, url})
}
useEffect(()=>{
console.log({ mp4, url })
}
function App() {
useEffect(() => {
testPath()
}, [])
return (