diff --git a/src/views/trials/trials-panel/reading/reading-tracking/index.vue b/src/views/trials/trials-panel/reading/reading-tracking/index.vue index 87f1485..2f1e9d3 100644 --- a/src/views/trials/trials-panel/reading/reading-tracking/index.vue +++ b/src/views/trials/trials-panel/reading/reading-tracking/index.vue @@ -195,10 +195,12 @@ - + - + @@ -206,8 +208,8 @@
{{ $t('trials:studyList:message:message4') }} - {{ $t('trials:studyList:message:message5') - }} +
@@ -328,10 +330,13 @@ export default { } let res = await updateImageShare(params) if (res.IsSuccess) { - this.$message.success(this.$t('common:message:updatedSuccessfully')) + // this.$message.success(this.$t('common:message:updatedSuccessfully')) + return true } + return false } catch (err) { console.log(err) + return false } }, handleShareImage(row) { @@ -355,7 +360,9 @@ export default { }).catch(() => { this.loading = false }) }, // 复制 - copyCode() { + async copyCode() { + let res = await this.updateImageShare() + if (!res) return false this.$copyText(`${this.$t('trials:researchRecord:label:link')} ${this.shareLink} ${this.$t('trials:studyList:message:message2')}${this.form.extractionCode}`).then( res => { this.$message.success(this.$t('trials:researchRecord:message:copySuccessfully'))