chore: sync local PL/CRM/BX and migration work to new Gogs host

Bundle pending backend/web-admin feature updates, data-migration scripts,
and related docs so the V1.5 branch on the Tencent Cloud Gogs matches the
current workspace (excluding local secrets).

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
zlwuandCursor committed 2026-08-01 09:19:21 +08:00
1 parent 5a9abfdd5d
commit 10c3c5470c
269 files changed
+1035435 -92885

No files matched your search

@@ -22,6 +22,7 @@
import { computed, ref, watch, onBeforeUnmount } from 'vue'
import { PictureFilled } from '@element-plus/icons-vue'
import request from '@/utils/http'
import { fetchAttachmentPreviewUrl } from '@/api/admin'
import { resolveCrmAttachmentUrl } from '@/utils/crm-attachment'
const props = defineProps({
@@ -101,7 +102,20 @@ const getImageBlobUrl = async (imageUrl: string): Promise<string> => {
const getUrlByOssId = async (ossId: string): Promise<string> => {
try {
loading.value = true
return await getImageBlobUrl('/resource/oss/download/' + ossId)
const key = ossId.trim()
if (!key) return ''
// 门户 MinIO 相对路径(含 /)直接拼公开前缀
if (key.includes('/')) {
return resolveCrmAttachmentUrl(key)
}
// 旧 CRM 数字 ossId / UUID:走后端预签名(会解析 sys_oss.url)
try {
const res = await fetchAttachmentPreviewUrl({ fileUrl: key })
if (res?.previewUrl) return res.previewUrl
} catch {
// fallthrough
}
return await getImageBlobUrl('/resource/oss/download/' + key)
} catch {
return ''
} finally {