From a2ee60784519a450bda25df9287b6856176288fa Mon Sep 17 00:00:00 2001
From: xiaoxiao <2014227881@qq.com>
Date: Mon, 16 Jun 2025 23:05:11 +0800
Subject: [PATCH] feat:算法仓库图片地址

---
 .env.development                                      |    2 ++
 .env.production                                       |    2 ++
 src/views/algorithmRepository/algorithmRepository.vue |    4 ++--
 3 files changed, 6 insertions(+), 2 deletions(-)

diff --git a/.env.development b/.env.development
index 7354a18..488c30a 100644
--- a/.env.development
+++ b/.env.development
@@ -27,6 +27,8 @@
 
 # 图片存放地址
 VITE_APP_TERRAIN_URL = https://wrj.shuixiongit.com/aiskyminio/cloud-bucket/all_terrain
+# 算法仓库图片地址
+VITE_APP_PICTURE_URL = https://wrj.shuixiongit.com/aiskyminio/cloud-bucket
 
 # 是否在打包时开启压缩,支持 gzip 和 brotli
 VITE_BUILD_COMPRESS = gzip
diff --git a/.env.production b/.env.production
index dfa8030..aca80bd 100644
--- a/.env.production
+++ b/.env.production
@@ -28,6 +28,8 @@
 
 # 图片存放地址
 VITE_APP_TERRAIN_URL = https://wrj.shuixiongit.com/aiskyminio/cloud-bucket/all_terrain
+# 算法仓库图片地址
+VITE_APP_PICTURE_URL = https://wrj.shuixiongit.com/aiskyminio/cloud-bucket
 
 # 是否在打包时开启压缩,支持 gzip 和 brotli
 VITE_BUILD_COMPRESS = gzip
diff --git a/src/views/algorithmRepository/algorithmRepository.vue b/src/views/algorithmRepository/algorithmRepository.vue
index 8431819..2898bd2 100644
--- a/src/views/algorithmRepository/algorithmRepository.vue
+++ b/src/views/algorithmRepository/algorithmRepository.vue
@@ -107,10 +107,10 @@
 });
 import { getDictionaryByCode } from '@/api/system/dictbiz';
 import { getalgorithmList, selectDeviceList } from '@/api/algorithm';
-import { getSmallImg } from '@/utils/util'
+import { getSmallImg } from '@/utils/util';
 import { useRouter } from 'vue-router';
 const router = useRouter();
-const baseUrl = import.meta.env.VITE_APP_TERRAIN_URL;
+const baseUrl = import.meta.env.VITE_APP_PICTURE_URL;
 const showDetail = ref(false);
 const taskData = ref('');
 const jcvalue = ref('');

--
Gitblit v1.9.3