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

optimize code (#5469)

This commit is contained in:
杨顺强
2023-05-13 15:34:41 +08:00
committed by GitHub
parent 5e1a484aa3
commit 403c692033
8 changed files with 37 additions and 13 deletions

View File

@@ -8,7 +8,7 @@ import { Utils } from './utils/utils';
const { serviceURL, siteRoot } = window.app.config;
const { username, filePerm } = window.app.pageOptions;
const { repoID, filePath, fileName, rawPath } = window.shared.pageOptions;
const { repoID, filePath, fileName, rawPath, assetsUrl } = window.shared.pageOptions;
window.seafile = {
repoID,
@@ -20,6 +20,7 @@ window.seafile = {
siteRoot,
docPerm: filePerm,
historyURL: Utils.generateHistoryURL(siteRoot, repoID, filePath),
assetsUrl,
};
ReactDom.render(