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: 10 comments 43 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
31 replies
@homuraLan
Comment options

@Arnozzc87
Comment options

@junjiangsong
Comment options

@monobo1989
Comment options

@keyian666
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
4 replies
@tingyue-wu
Comment options

@Nerders
Comment options

@EWEDLCM
Comment options

@yyqwe158
Comment options

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
2 replies
@steven0395
Comment options

@Twilight-lxy
Comment options

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@Twilight-lxy
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