fix(fe/files_panel): download qr code doesn't contain port

This commit is contained in:
hexxa 2022-01-01 11:14:12 +08:00 committed by Hexxa
parent e019eb7293
commit b66b29624a

View file

@ -619,7 +619,7 @@ export class FilesPanel extends React.Component<Props, State, {}> {
</div>
);
const absDownloadURL = `${document.location.protocol}//${document.location.hostname}${downloadPath}`;
const absDownloadURL = `${document.location.protocol}//${document.location.hostname}:${document.location.port}${downloadPath}`;
const pathTitle = this.props.msg.pkg.get("item.downloadURL");
const modTimeTitle = this.props.msg.pkg.get("item.modTime");
const sizeTitle = this.props.msg.pkg.get("item.size");