chore: update resource base url

This commit is contained in:
Steven
2022-09-09 07:40:21 +08:00
parent b1e6956441
commit fbce43870f
4 changed files with 13 additions and 6 deletions

View File

@ -90,11 +90,11 @@ const ResourcesDialog: React.FC<Props> = (props: Props) => {
};
const handlPreviewBtnClick = (resource: Resource) => {
showPreviewImageDialog(`${window.location.origin}/h/r/${resource.id}/${resource.filename}`);
showPreviewImageDialog(`${window.location.origin}/o/r/${resource.id}/${resource.filename}`);
};
const handleCopyResourceLinkBtnClick = (resource: Resource) => {
utils.copyTextToClipboard(`${window.location.origin}/h/r/${resource.id}/${resource.filename}`);
utils.copyTextToClipboard(`${window.location.origin}/o/r/${resource.id}/${resource.filename}`);
toastHelper.success("Succeed to copy resource link to clipboard");
};