mirror of
https://github.com/usememos/memos.git
synced 2025-02-15 19:00:46 +01:00
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 = () => {
|
const handleCopyLinkBtnClick = () => {
|
||||||
copy(`${window.location.origin}/m/${memo.name}`);
|
copy(`${window.location.origin}/m/${memo.uid}`);
|
||||||
if (memo.visibility !== Visibility.PUBLIC) {
|
if (memo.visibility !== Visibility.PUBLIC) {
|
||||||
toast.success(t("message.succeed-copy-link-not-public"));
|
toast.success(t("message.succeed-copy-link-not-public"));
|
||||||
} else {
|
} else {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user