Browse Source

fix(nc-gui): encode copy record url

pull/4386/head
Wing-Kam Wong 2 years ago
parent
commit
e0e655270e
  1. 8
      packages/nc-gui/components/smartsheet/expanded-form/Header.vue

8
packages/nc-gui/components/smartsheet/expanded-form/Header.vue

@ -45,9 +45,11 @@ const { copy } = useClipboard()
const copyRecordUrl = () => { const copyRecordUrl = () => {
copy( copy(
`${dashboardUrl?.value}#/${route.params.projectType}/${route.params.projectId}/${route.params.type}/${meta.value?.title}${ encodeURI(
props.view ? `/${props.view.title}` : '' `${dashboardUrl?.value}#/${route.params.projectType}/${route.params.projectId}/${route.params.type}/${meta.value?.title}${
}?rowId=${primaryKey.value}`, props.view ? `/${props.view.title}` : ''
}?rowId=${primaryKey.value}`,
),
) )
message.success('Copied to clipboard') message.success('Copied to clipboard')
} }

Loading…
Cancel
Save