From 07ca0a9a7e4487361250b838b27e68333f923bcc Mon Sep 17 00:00:00 2001 From: xixiibn5100 <1584914306@qq.com> Date: Sat, 5 Oct 2024 13:41:34 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E9=9A=90=E8=97=8F=E4=BA=86=E8=B6=85?= =?UTF-8?q?=E6=97=B6=E9=97=AE=E5=8D=B7=E7=9A=84=E6=8F=90=E4=BA=A4=E6=8C=89?= =?UTF-8?q?=E9=92=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/pages/Home/questionnaireItem.vue | 4 ++-- src/pages/View/view.vue | 8 ++++++-- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/src/pages/Home/questionnaireItem.vue b/src/pages/Home/questionnaireItem.vue index 85849f9..50902f8 100644 --- a/src/pages/Home/questionnaireItem.vue +++ b/src/pages/Home/questionnaireItem.vue @@ -51,8 +51,8 @@ import { useMainStore } from '@/stores'; import CryptoJS from 'crypto-js'; import { ElMessage } from 'element-plus'; +const baseURL = import.meta.env.VITE_COPY_LINK; const tempStore = useMainStore().useTempStore(); - const props = defineProps<{ title: string, idName: number, @@ -100,7 +100,7 @@ const delQuestionnaire = (id: number) => { const copyShareCode = () => { const Key = 'JingHong'; const encryptedId = CryptoJS.AES.encrypt(props.idName+'',Key).toString(); - navigator.clipboard.writeText( "https://qa.lonesome.cn/View?id=" + encryptedId); + navigator.clipboard.writeText( baseURL + "/View?id=" + encryptedId); ElMessage({ message: '链接复制成功', type: 'success', diff --git a/src/pages/View/view.vue b/src/pages/View/view.vue index 7991cd7..f53aa03 100644 --- a/src/pages/View/view.vue +++ b/src/pages/View/view.vue @@ -74,7 +74,7 @@
- +
@@ -121,6 +121,7 @@ const loginStore = useMainStore().useLoginStore(); const decryptedId = ref() const allowSend = ref(true) + const isOutDate = ref(false) onMounted(() => { loginStore.setShowHeader(false); @@ -163,7 +164,10 @@ } }); loading.value = false - } else { + } else if (res.code === 200509){ + isOutDate.value = true + ElNotification.error(res.msg); + }else { ElNotification.error(res.msg); } },