|
@@ -52,7 +52,7 @@ export default function TitlebarGridList(props) {
|
|
|
const [isLoaded, setIsLoaded] = React.useState(false);
|
|
|
const [items, setItems] = React.useState([]);
|
|
|
|
|
|
- const [folderName, setFolderName] = React.useState('');
|
|
|
+ const [folderName, setFolderName] = React.useState('user:/Photo/Photo/uploads/');
|
|
|
|
|
|
const onChanageFolder = (folderN) => {
|
|
|
setFolderName(folderN);
|
|
@@ -61,7 +61,11 @@ export default function TitlebarGridList(props) {
|
|
|
}
|
|
|
|
|
|
useEffect(() => {
|
|
|
- fetch("http://localhost:3000/listFolder")
|
|
|
+ //fetch("http://localhost:3000/listFolder")
|
|
|
+ fetch("/system/ajgi/interface?script=/Photo/backend/listFolder.js", {
|
|
|
+ method: 'post',
|
|
|
+ body: JSON.stringify({ folder: folderName })
|
|
|
+ })
|
|
|
.then(res => res.json())
|
|
|
.then(
|
|
|
(result) => {
|
|
@@ -93,7 +97,7 @@ export default function TitlebarGridList(props) {
|
|
|
<GridListTileBar
|
|
|
title={tile.Foldername}
|
|
|
actionIcon={
|
|
|
- <IconButton aria-label={`info about ${tile.Foldername}`} onClick={() => onChanageFolder(tile.Foldername)} className={classes.icon}>
|
|
|
+ <IconButton aria-label={`info about ${tile.Foldername}`} onClick={() => onChanageFolder(tile.VPath)} className={classes.icon}>
|
|
|
<InfoIcon />
|
|
|
</IconButton>
|
|
|
}
|