协议问题解决
This commit is contained in:
@@ -174,8 +174,8 @@
|
||||
<div class="agreement-wrapper">
|
||||
<el-checkbox v-model="registerForm.agree" />
|
||||
<span class="agreement-text">
|
||||
注册即为同意 <span class="agreement-link">《红色思政智能体平台》</span><span class="agreement-link">《用户协议》</span>
|
||||
<span class="agreement-link">《隐私协议》</span>
|
||||
注册即为同意 <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>
|
||||
</div>
|
||||
</el-form-item>
|
||||
@@ -522,6 +522,15 @@ function goToLogin() {
|
||||
router.push('/login');
|
||||
}
|
||||
|
||||
/**
|
||||
* 打开协议文件(新标签页)
|
||||
*/
|
||||
function openAgreement(type: 'platform' | 'user' | 'privacy') {
|
||||
// 跳转到协议预览页面
|
||||
const url = router.resolve({ path: `/agreement/${type}` }).href;
|
||||
window.open(url, '_blank');
|
||||
}
|
||||
|
||||
// 组件卸载时清除定时器
|
||||
import { onUnmounted } from 'vue';
|
||||
onUnmounted(() => {
|
||||
|
||||
Reference in New Issue
Block a user