mirror of https://github.com/halo-dev/halo
Update the path patterns of static files while refreshing (#1907)
* Fixed the bug of not being able to query according to the content The content table is associated at query time now. * Update static file mappings on refreshpull/2076/head
parent
b20ab0f1e5
commit
bca4e53e77
|
@ -53,7 +53,12 @@ public class StaticStorageServiceImpl
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public List<StaticFile> listStaticFolder() {
|
public List<StaticFile> listStaticFolder() {
|
||||||
return listStaticFileTree(staticDir);
|
|
||||||
|
List<StaticFile> staticFiles = listStaticFileTree(staticDir);
|
||||||
|
|
||||||
|
onChange(); // To update the mapping of local files.
|
||||||
|
|
||||||
|
return staticFiles;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Nullable
|
@Nullable
|
||||||
|
|
Loading…
Reference in New Issue