mirror of https://github.com/usememos/memos.git
chore: fix memo link
This commit is contained in:
parent
7d94256a2a
commit
192ee7acc0
|
|
@ -74,7 +74,7 @@ const ShareMemoDialog: React.FC<Props> = (props: Props) => {
|
|||
};
|
||||
|
||||
const handleCopyLinkBtnClick = () => {
|
||||
copy(`${window.location.origin}/m/${memo.name}`);
|
||||
copy(`${window.location.origin}/m/${memo.uid}`);
|
||||
if (memo.visibility !== Visibility.PUBLIC) {
|
||||
toast.success(t("message.succeed-copy-link-not-public"));
|
||||
} else {
|
||||
|
|
|
|||
Loading…
Reference in New Issue