Skip to content

Commit 3592db0

Browse files
committed
fix:2023版本取文本错误 #234
1 parent 63b5be3 commit 3592db0

19 files changed

+28
-23
lines changed

fcb-fronted/src/components/FileBox.vue

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,12 @@ function renderMarkdown(message: string) {
6363
6464
function getQrCodeUrl(code: string) {
6565
// 否是接收的文件,如果是则返回下载直链,否则拼接分享链接
66-
return code.toString().startsWith('/share/download') ? window.location.origin + code : window.location.origin + '/#/?code=' + code;
66+
if (code) {
67+
return code.toString().startsWith('/share/download') ? window.location.origin + code : window.location.origin + '/#/?code=' + code;
68+
}
69+
else {
70+
return '';
71+
}
6772
}
6873
</script>
6974

@@ -100,14 +105,14 @@ function getQrCodeUrl(code: string) {
100105
<div style="width: 200px;">
101106
<div style="display: flex;justify-content: space-between">
102107
<!-- 下载二维码白色边框 -->
103-
<div v-if="value.name!=='文本分享'"
108+
<div v-if="value.name!=='Text'"
104109
style="padding: 5px; background-color: white; border: 2px solid white; box-sizing: border-box; height: 114px;">
105110
<qrcode-vue :value="getQrCodeUrl(value.text)" :size="100"></qrcode-vue>
106111
</div>
107112
<div v-else style="width: 100px;height: 100px;flex-wrap: wrap;overflow-y:scroll ">{{value.text}}</div>
108113
<div style="display: flex;flex-direction: column;justify-content: space-around">
109114
<el-tag size="large" style="cursor: pointer" @click="copyText(value.code)">{{ value.code }}</el-tag>
110-
<el-tag v-if="value.name!=='文本分享'" size="large" type="success" style="cursor: pointer" @click="openUrl(value.text);">
115+
<el-tag v-if="value.name!=='Text'" size="large" type="success" style="cursor: pointer" @click="openUrl(value.text);">
111116
{{ t('fileBox.download') }}
112117
</el-tag>
113118
<el-tag v-else size="large" type="success" style="cursor: pointer" @click="showTextDetail(value.text);">{{ t('fileBox.detail') }}</el-tag>

themes/2023/assets/AboutView-DLF8OubT.js renamed to themes/2023/assets/AboutView-BKOAIqPG.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

themes/2023/assets/AdminView-Bqs0Sid7.js renamed to themes/2023/assets/AdminView-BWfXdK1g.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

themes/2023/assets/CardTools.vue_vue_type_script_setup_true_lang-BHQWcnuv.js renamed to themes/2023/assets/CardTools.vue_vue_type_script_setup_true_lang-CrXTRNrq.js

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

themes/2023/assets/FileView-DeCGzmG3.js renamed to themes/2023/assets/FileView-Dux7n3Yt.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

themes/2023/assets/HomeView-DwzOQY6f.js renamed to themes/2023/assets/HomeView-BkILh4cO.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)