Skip to content

关于alist使用onlyoffice的配置问题 #3255

Answered by chenjuefei
hhy5562877 asked this question in Q&A
Discussion options

You must be logged in to vote

因为没有view.html 需要你自己编写

<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>OnlyOffice Viewer</title>
</head>
 
<body>
    <div id="placeholder"></div>
    <script type="text/javascript" src="https://documentserver/web-apps/apps/api/documents/api.js"></script>
    <script>
        function getQueryParamValue(name) {
            const searchParams = new URLSearchParams(window.location.search);
            return searchParams.get(name);
        }
        
        const url = decodeURIComponent(getQueryParamValue("src"));
        const fileName = url.substring(url.lastIndexOf('/') + 1, url.lastIndexOf('?') != -1 ? url.lastIndexOf('?') : url.length);
        const file…

Replies: 8 comments 37 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
29 replies
@CrazyJasonwell
Comment options

@CrazyJasonwell
Comment options

@homuraLan
Comment options

@Arnozzc87
Comment options

@junjiangsong
Comment options

Answer selected by xhofe
Comment options

You must be logged in to vote
5 replies
@zhushen12580
Comment options

@nxliubo
Comment options

@zhushen12580
Comment options

@nxliubo
Comment options

@CrazyJasonwell
Comment options

Comment options

You must be logged in to vote
2 replies
@tingyue-wu
Comment options

@Nerders
Comment options

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@steven0395
Comment options

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet