From 5454bbe86b1a22e9f05b6bc43f7ed7e9d6c4dc14 Mon Sep 17 00:00:00 2001
From: zhou zhou <3272660260@qq.com>
Date: 星期五, 03 四月 2026 09:34:15 +0800
Subject: [PATCH] #版权 PROJECT_COPYRIGHT logo PROJECT_LOGO 配置项和页面优化
---
rsf-design/src/views/system/config/configPage.helpers.js | 8 ++++++++
1 files changed, 8 insertions(+), 0 deletions(-)
diff --git a/rsf-design/src/views/system/config/configPage.helpers.js b/rsf-design/src/views/system/config/configPage.helpers.js
index 02c3ff6..6233637 100644
--- a/rsf-design/src/views/system/config/configPage.helpers.js
+++ b/rsf-design/src/views/system/config/configPage.helpers.js
@@ -5,6 +5,10 @@
{ labelKey: 'pages.system.config.types.json', fallback: 'json', value: 4 },
{ labelKey: 'pages.system.config.types.date', fallback: 'date', value: 5 }
]
+const IMAGE_VALUE_RE = /(^data:image\/)|(\.(png|jpe?g|gif|bmp|webp|svg|ico)(\?.*)?$)|(([?&]path=).*?\.(png|jpe?g|gif|bmp|webp|svg|ico)($|&))/i
+
+export const PROJECT_LOGO_FLAG = 'PROJECT_LOGO'
+export const PROJECT_COPYRIGHT_FLAG = 'PROJECT_COPYRIGHT'
export function createConfigSearchState() {
return {
@@ -108,6 +112,10 @@
}
}
+export function isImageConfigValue(value) {
+ return IMAGE_VALUE_RE.test(String(value || '').trim())
+}
+
export function normalizeConfigListRow(record = {}) {
const typeMeta = getConfigTypeMeta(record.type)
const statusMeta = getConfigStatusMeta(record.status)
--
Gitblit v1.9.1