Browse Source

fix(nc-gui): encode copy record url

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

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

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

Loading…
Cancel
Save