协议移除
This commit is contained in:
@@ -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()),
|
||||
|
||||
|
||||
@@ -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"));
|
||||
|
||||
|
||||
@@ -50,11 +50,6 @@ export default {
|
||||
},
|
||||
|
||||
// 协议文件URL
|
||||
platformAgreementUrl: (state: SystemState) => {
|
||||
const fileId = state.baseInfo?.platformAgreement;
|
||||
return (fileId && fileId.trim()) ? `${FILE_DOWNLOAD_URL}${fileId}` : '';
|
||||
},
|
||||
|
||||
userAgreementUrl: (state: SystemState) => {
|
||||
const fileId = state.baseInfo?.userAgreement;
|
||||
return (fileId && fileId.trim()) ? `${FILE_DOWNLOAD_URL}${fileId}` : '';
|
||||
|
||||
@@ -11,7 +11,6 @@ export interface SystemBaseInfo {
|
||||
favicon: string; // 网站图标(fileId)
|
||||
|
||||
// 登录协议文件ID
|
||||
platformAgreement: string; // 平台协议(fileId)
|
||||
userAgreement: string; // 用户协议(fileId)
|
||||
privacyAgreement: string; // 隐私协议(fileId)
|
||||
|
||||
|
||||
@@ -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':
|
||||
|
||||
@@ -181,7 +181,7 @@
|
||||
<div class="agreement-wrapper">
|
||||
<el-checkbox v-model="loginForm.agree" />
|
||||
<span class="agreement-text">
|
||||
登录即为同意 <span class="agreement-link" @click="openAgreement('platform')">《红色思政智能体平台》</span><span class="agreement-link" @click="openAgreement('user')">《用户协议》</span>
|
||||
登录即为同意 <span class="agreement-link" @click="openAgreement('user')">《用户协议》</span>
|
||||
<span class="agreement-link" @click="openAgreement('privacy')">《隐私协议》</span>
|
||||
</span>
|
||||
</div>
|
||||
|
||||
@@ -181,7 +181,7 @@
|
||||
<div class="agreement-wrapper">
|
||||
<el-checkbox v-model="loginForm.agree" />
|
||||
<span class="agreement-text">
|
||||
登录即为同意 <span class="agreement-link" @click="openAgreement('platform')">《红色思政智能体平台》</span>
|
||||
登录即为同意
|
||||
<span class="agreement-link" @click="openAgreement('user')">《用户协议》</span>
|
||||
<span class="agreement-link" @click="openAgreement('privacy')">《隐私协议》</span>
|
||||
</span>
|
||||
|
||||
@@ -167,7 +167,7 @@
|
||||
<div class="agreement-wrapper">
|
||||
<el-checkbox v-model="registerForm.agree" />
|
||||
<span class="agreement-text">
|
||||
注册即为同意 <span class="agreement-link" @click="openAgreement('platform')">《红色思政智能体平台》</span><span class="agreement-link" @click="openAgreement('user')">《用户协议》</span>
|
||||
注册即为同意 <span class="agreement-link" @click="openAgreement('user')">《用户协议》</span>
|
||||
<span class="agreement-link" @click="openAgreement('privacy')">《隐私协议》</span>
|
||||
</span>
|
||||
</div>
|
||||
|
||||
@@ -174,7 +174,7 @@
|
||||
<div class="agreement-wrapper">
|
||||
<el-checkbox v-model="registerForm.agree" />
|
||||
<span class="agreement-text">
|
||||
注册即为同意 <span class="agreement-link" @click="openAgreement('platform')">《红色思政智能体平台》</span><span class="agreement-link" @click="openAgreement('user')">《用户协议》</span>
|
||||
注册即为同意 <span class="agreement-link" @click="openAgreement('user')">《用户协议》</span>
|
||||
<span class="agreement-link" @click="openAgreement('privacy')">《隐私协议》</span>
|
||||
</span>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user