diff --git a/lib/Controller/ApiController.php b/lib/Controller/ApiController.php index 469276a8..13fe459f 100644 --- a/lib/Controller/ApiController.php +++ b/lib/Controller/ApiController.php @@ -149,11 +149,12 @@ class ApiController extends Controller { // Map sub to JSON array $subdirArray = [ "day_id" => -0.1, - "detail" => array_map(function ($item) { + "detail" => array_map(function ($node) { return [ - "file_id" => $item->getId(), - "name" => $item->getName(), + "file_id" => $node->getId(), + "name" => $node->getName(), "is_folder" => 1, + "path" => $node->getPath(), ]; }, $sub, []), ]; diff --git a/src/components/Folder.vue b/src/components/Folder.vue index 46449ee0..2ca87994 100644 --- a/src/components/Folder.vue +++ b/src/components/Folder.vue @@ -1,16 +1,27 @@