fix: 二维码问题

This commit is contained in:
lan
2024-01-02 20:37:52 +08:00
parent 9b9b21a8e4
commit ec0f4c0829
22 changed files with 45 additions and 49 deletions
+5 -2
View File
@@ -59,7 +59,10 @@ md.use(markdownItKatex, { blockClass: 'katexmath-block rounded-md p-[10px]', err
function renderMarkdown(message: string) {
return md.render(message);
}
function getQrCodeUrl(code:string) {
console.log(window.location.origin + '/#/?code=' + code)
return window.location.origin + '/#/?code=' + code;
}
</script>
<template>
@@ -118,7 +121,7 @@ function renderMarkdown(message: string) {
<el-progress v-if="value.status!='success' && value.status!='fail'" striped :percentage="value.percentage" :text-inside="true"
:stroke-width="20"></el-progress>
<div v-else style="display: flex;justify-content: space-between">
<qrcode-vue :value="value.text" :size="100"></qrcode-vue>
<qrcode-vue :value="getQrCodeUrl(value.code)" :size="100"></qrcode-vue>
<div style="display: flex;flex-direction: column;justify-content: space-around">
<el-tag size="large" style="cursor: pointer" @click="copyText(value.code)">{{ value.code }}</el-tag>
<el-tag size="large" type="success" style="cursor: pointer" @click="copyText(value.code,1);">{{ t('fileBox.copyLink') }}
-5
View File
@@ -56,11 +56,6 @@ const shareData = ref({
<upload-file :shareData="shareData" v-if="shareData.targetType=='file'"/>
<upload-text :shareData="shareData" v-else-if="shareData.targetType=='text'"/>
</div>
<el-carousel height="319px">
<el-carousel-item v-for="item in 4" :key="item">
<div style="height: 100%;width: 100%;background: #0a0a0a"></div>
</el-carousel-item>
</el-carousel>
</el-card>
</main>
</template>