fix
This commit is contained in:
parent
78c0d3d265
commit
e7f6ea07ad
12
src/App.tsx
12
src/App.tsx
|
|
@ -19,9 +19,7 @@ import PythonCoreTestPage from './pages/PythonCoreTestPage'
|
||||||
import PythonEnvManagerPage from './pages/PythonEnvManagerPage'
|
import PythonEnvManagerPage from './pages/PythonEnvManagerPage'
|
||||||
import * as path from '@tauri-apps/api/path';
|
import * as path from '@tauri-apps/api/path';
|
||||||
import { convertFileSrc } from '@tauri-apps/api/core'
|
import { convertFileSrc } from '@tauri-apps/api/core'
|
||||||
|
async function testPath() {
|
||||||
function App() {
|
|
||||||
async function testPath(){
|
|
||||||
console.log({
|
console.log({
|
||||||
appCacheDir: await path.appCacheDir(),
|
appCacheDir: await path.appCacheDir(),
|
||||||
appConfigDir: await path.appConfigDir(),
|
appConfigDir: await path.appConfigDir(),
|
||||||
|
|
@ -44,9 +42,11 @@ function App() {
|
||||||
|
|
||||||
const mp4 = await path.join(await path.publicDir(), '1.mp4')
|
const mp4 = await path.join(await path.publicDir(), '1.mp4')
|
||||||
const url = convertFileSrc(mp4)
|
const url = convertFileSrc(mp4)
|
||||||
console.log({mp4, url})
|
console.log({ mp4, url })
|
||||||
}
|
}
|
||||||
useEffect(()=>{
|
function App() {
|
||||||
|
|
||||||
|
useEffect(() => {
|
||||||
testPath()
|
testPath()
|
||||||
}, [])
|
}, [])
|
||||||
return (
|
return (
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue