From e411aae838823ff5e3eee452188c7227bccf0e33 Mon Sep 17 00:00:00 2001 From: 闫增涛 <1829501689@qq.com> Date: 星期四, 17 十月 2024 16:21:41 +0800 Subject: [PATCH] 数学 --- src/components/examinations/index.vue | 12 +++++++++++- 1 files changed, 11 insertions(+), 1 deletions(-) diff --git a/src/components/examinations/index.vue b/src/components/examinations/index.vue index c8068ec..550baa2 100644 --- a/src/components/examinations/index.vue +++ b/src/components/examinations/index.vue @@ -551,7 +551,6 @@ watch: { cardList: { handler(newVal) { - // console.log('鏂板��',newVal); this.cardData = this.cardList; if (newVal && newVal.length) { this.loading = false; @@ -566,6 +565,17 @@ this.getErrorList(); }, methods: { + // 鑾峰彇涓嶅彈淇濇姢鐨勫浘鐗� + getPublicImage(md5, width, height) { + if(md5.includes('http')) return md5 + let src = null; + if (md5) { + src = process.env.VUE_APP_API_URL + `/file/GetPreViewImage?md5=${md5}`; + } + if (width) src += `&width=${width}`; + if (height) src += `&height=${height}`; + return src; + }, // 鏁扮粍杞负瀛楃涓叉柟娉� arrayToString(data) { // 妫�鏌ユ槸鍚︿负鏁扮粍 -- Gitblit v1.9.1