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); } },