File tree Expand file tree Collapse file tree 1 file changed +9
-3
lines changed
Expand file tree Collapse file tree 1 file changed +9
-3
lines changed Original file line number Diff line number Diff line change @@ -144,7 +144,7 @@ export const usePath = () => {
144144 cancelObj ?.( )
145145 cancelList ?.( )
146146 retry_pass = rp ?? false
147- handleErr ( "" )
147+ ObjStore . setErr ( "" )
148148 if ( hasHistory ( path ) ) {
149149 return recoverHistory ( path )
150150 } else if ( IsDirRecord [ path ] ) {
@@ -221,9 +221,15 @@ export const usePath = () => {
221221 notify . error ( msg )
222222 }
223223 } else {
224- if ( first_fetch && msg . endsWith ( "object not found" ) ) {
224+ const basePath = me ( ) . base_path
225+ if (
226+ first_fetch &&
227+ basePath != "/" &&
228+ pathname ( ) . includes ( basePath ) &&
229+ msg . endsWith ( "object not found" )
230+ ) {
225231 first_fetch = false
226- to ( pathname ( ) . replace ( me ( ) . base_path , "" ) )
232+ to ( pathname ( ) . replace ( basePath , "" ) )
227233 return
228234 }
229235 if ( code === undefined || code >= 0 ) {
You can’t perform that action at this time.
0 commit comments