mirror of
https://github.com/haiwen/seahub.git
synced 2025-08-22 08:47:22 +00:00
parent
8a6d5e1639
commit
c331f02089
@ -25,7 +25,7 @@ const { repoID, repoName, filePath, fileName, mode, draftID, isDraft, hasDraft,
|
|||||||
const { siteRoot, serviceUrl, seafileCollabServer } = window.app.config;
|
const { siteRoot, serviceUrl, seafileCollabServer } = window.app.config;
|
||||||
const userInfo = window.app.userInfo;
|
const userInfo = window.app.userInfo;
|
||||||
const userName = userInfo.username;
|
const userName = userInfo.username;
|
||||||
let dirPath = '/';
|
let dirPath = Utils.getDirName(filePath);
|
||||||
|
|
||||||
function getImageFileNameWithTimestamp() {
|
function getImageFileNameWithTimestamp() {
|
||||||
var d = Date.now();
|
var d = Date.now();
|
||||||
@ -143,7 +143,8 @@ class EditorUtilities {
|
|||||||
}
|
}
|
||||||
|
|
||||||
getFiles() {
|
getFiles() {
|
||||||
return seafileAPI.listDir(repoID, dirPath, { recursive: true} ).then((response) => {
|
const rootPath = '/';
|
||||||
|
return seafileAPI.listDir(repoID, rootPath, { recursive: true} ).then((response) => {
|
||||||
var files = response.data.dirent_list.map((item) => {
|
var files = response.data.dirent_list.map((item) => {
|
||||||
return {
|
return {
|
||||||
name: item.name,
|
name: item.name,
|
||||||
|
Loading…
Reference in New Issue
Block a user