Revert "fix: 文件二维码在前端拼接结果好像错误"

This reverts commit 9602ad3a12.
This commit is contained in:
lan
2024-05-06 11:05:04 +08:00
parent 1a474fdc24
commit b365938937
17 changed files with 34 additions and 37 deletions
+1 -4
View File
@@ -64,9 +64,6 @@ function renderMarkdown(message: string) {
function getQrCodeUrl(code:string) {
return code.startsWith('http') ? code : window.location.origin + code;
}
function getShareQrCodeUrl(code:string) {
return window.location.origin + '/#/?code=' + code;
}
</script>
<template>
@@ -125,7 +122,7 @@ function getShareQrCodeUrl(code: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="getShareQrCodeUrl(value.code)" :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') }}