协议移除

This commit is contained in:
2026-01-14 10:22:29 +08:00
parent 9c0efc38d0
commit d18a09e639
9 changed files with 5 additions and 15 deletions

View File

@@ -34,7 +34,6 @@ INSERT INTO `tb_sys_config` (`id`, `config_key`, `config_name`, `config_value`,
('103', 'system.logo.home', '首页Logo', '', 'string', 'imgupload', '基础配置', '首页Logo', NULL, '存储文件ID建议尺寸36x36px', NULL, NULL, NULL, NULL, NULL, 103, 1, '1', now()),
('104', 'system.logo.admin', '管理后台Logo', '', 'string', 'imgupload', '基础配置', '管理后台Logo', NULL, '存储文件ID建议尺寸36x36px', NULL, NULL, NULL, NULL, NULL, 104, 1, '1', now()),
('105', 'system.favicon', '网站图标', '', 'string', 'imgupload', '基础配置', '网站图标', NULL, '存储文件ID建议格式ico/png尺寸36x36px', NULL, NULL, NULL, NULL, NULL, 105, 1, '1', now()),
('106', 'system.agreement.platform', '平台协议', '', 'string', 'fileupload', '基础配置', '平台协议文件', NULL, '支持PDF、TXT格式用户点击后新开页面查看', NULL, NULL, NULL, NULL, NULL, 106, 1, '1', now()),
('107', 'system.agreement.user', '用户协议', '', 'string', 'fileupload', '基础配置', '用户协议文件', NULL, '支持PDF、TXT格式用户点击后新开页面查看', NULL, NULL, NULL, NULL, NULL, 107, 1, '1', now()),
('108', 'system.agreement.privacy', '隐私协议', '', 'string', 'fileupload', '基础配置', '隐私协议文件', NULL, '支持PDF、TXT格式用户点击后新开页面查看', NULL, NULL, NULL, NULL, NULL, 108, 1, '1', now()),

View File

@@ -388,7 +388,6 @@ public class SysConfigServiceImpl implements SysConfigService {
baseInfo.put("favicon", getStringConfig("system.favicon"));
// 登录协议文件ID
baseInfo.put("platformAgreement", getStringConfig("system.agreement.platform"));
baseInfo.put("userAgreement", getStringConfig("system.agreement.user"));
baseInfo.put("privacyAgreement", getStringConfig("system.agreement.privacy"));

View File

@@ -49,12 +49,7 @@ export default {
return (fileId && fileId.trim()) ? `${FILE_DOWNLOAD_URL}${fileId}` : '/favicon.ico';
},
// 协议文件URL
platformAgreementUrl: (state: SystemState) => {
const fileId = state.baseInfo?.platformAgreement;
return (fileId && fileId.trim()) ? `${FILE_DOWNLOAD_URL}${fileId}` : '';
},
// 协议文件URL
userAgreementUrl: (state: SystemState) => {
const fileId = state.baseInfo?.userAgreement;
return (fileId && fileId.trim()) ? `${FILE_DOWNLOAD_URL}${fileId}` : '';

View File

@@ -11,7 +11,6 @@ export interface SystemBaseInfo {
favicon: string; // 网站图标fileId
// 登录协议文件ID
platformAgreement: string; // 平台协议fileId
userAgreement: string; // 用户协议fileId
privacyAgreement: string; // 隐私协议fileId

View File

@@ -70,8 +70,6 @@ const fileId = computed(() => {
if (!baseInfo) return '';
switch (agreementType.value) {
case 'platform':
return baseInfo.platformAgreement || '';
case 'user':
return baseInfo.userAgreement || '';
case 'privacy':

View File

@@ -181,7 +181,7 @@
<div class="agreement-wrapper">
<el-checkbox v-model="loginForm.agree" />
<span class="agreement-text">
登录即为同意&nbsp;<span class="agreement-link" @click="openAgreement('platform')">红色思政智能体平台</span><span class="agreement-link" @click="openAgreement('user')">用户协议</span>
登录即为同意&nbsp;<span class="agreement-link" @click="openAgreement('user')">用户协议</span>
<span class="agreement-link" @click="openAgreement('privacy')">隐私协议</span>
</span>
</div>

View File

@@ -181,7 +181,7 @@
<div class="agreement-wrapper">
<el-checkbox v-model="loginForm.agree" />
<span class="agreement-text">
登录即为同意&nbsp;<span class="agreement-link" @click="openAgreement('platform')">红色思政智能体平台</span>
登录即为同意&nbsp;
<span class="agreement-link" @click="openAgreement('user')">用户协议</span>
<span class="agreement-link" @click="openAgreement('privacy')">隐私协议</span>
</span>

View File

@@ -167,7 +167,7 @@
<div class="agreement-wrapper">
<el-checkbox v-model="registerForm.agree" />
<span class="agreement-text">
注册即为同意&nbsp;<span class="agreement-link" @click="openAgreement('platform')">《红色思政智能体平台》</span><span class="agreement-link" @click="openAgreement('user')">《用户协议》</span>
注册即为同意&nbsp;<span class="agreement-link" @click="openAgreement('user')">《用户协议》</span>
<span class="agreement-link" @click="openAgreement('privacy')">《隐私协议》</span>
</span>
</div>

View File

@@ -174,7 +174,7 @@
<div class="agreement-wrapper">
<el-checkbox v-model="registerForm.agree" />
<span class="agreement-text">
注册即为同意&nbsp;<span class="agreement-link" @click="openAgreement('platform')">红色思政智能体平台</span><span class="agreement-link" @click="openAgreement('user')">用户协议</span>
注册即为同意&nbsp;<span class="agreement-link" @click="openAgreement('user')">用户协议</span>
<span class="agreement-link" @click="openAgreement('privacy')">隐私协议</span>
</span>
</div>