1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-09-20 19:08:21 +00:00

optimize code (#7306)

This commit is contained in:
杨顺强
2025-01-04 14:45:10 +08:00
committed by GitHub
parent 1a42eafbe6
commit 4088771757
7 changed files with 14 additions and 7 deletions

View File

@@ -16,7 +16,8 @@ const {
repoID, repoName, repoEncrypted, parentDir, filePerm,
docPath, docName, docUuid, seadocAccessToken, seadocServerUrl, assetsUrl,
isSdocRevision, isPublished, originFilename, revisionCreatedAt, originFileVersion,
originFilePath, originDocUuid, revisionId, isFreezed, mobileLogin, isRepoAdmin
originFilePath, originDocUuid, revisionId, isFreezed, mobileLogin, isRepoAdmin,
enableSeafileAI
} = window.app.pageOptions;
window.seafile = {
@@ -52,6 +53,7 @@ window.seafile = {
isFreezed,
isPro: isPro === 'True' ? true : false,
mobileLogin,
enableSeafileAI,
};
const repoInfo = { encrypted: repoEncrypted, permission: filePerm, is_admin: isRepoAdmin };