@@ -13,7 +13,7 @@ import {
13
13
Box ,
14
14
} from "@hope-ui/solid"
15
15
import { createSignal , For , Show } from "solid-js"
16
- import { useRouter , useT } from "~/hooks"
16
+ import { usePath , useRouter , useT } from "~/hooks"
17
17
import { getMainColor } from "~/store"
18
18
import {
19
19
RiDocumentFolderUploadFill ,
@@ -72,6 +72,7 @@ const UploadFile = (props: UploadFileProps) => {
72
72
const Upload = ( ) => {
73
73
const t = useT ( )
74
74
const { pathname } = useRouter ( )
75
+ const { refresh } = usePath ( )
75
76
const [ drag , setDrag ] = createSignal ( false )
76
77
const [ uploading , setUploading ] = createSignal ( false )
77
78
const [ asTask , setAsTask ] = createSignal ( false )
@@ -97,6 +98,7 @@ const Upload = () => {
97
98
for await ( const ms of asyncPool ( 3 , files , handleFile ) ) {
98
99
console . log ( ms )
99
100
}
101
+ refresh ( undefined , true )
100
102
}
101
103
const setUpload = ( path : string , key : keyof UploadFileProps , value : any ) => {
102
104
setUploadFiles ( "uploads" , ( upload ) => upload . path === path , key , value )
0 commit comments