可信代码库-订阅操作添加预警手机号和预警邮件地址

This commit is contained in:
付民康
2025-06-19 16:01:49 +08:00
parent c6afe5b3df
commit e06e12ec06
2 changed files with 63 additions and 6 deletions

View File

@@ -40,12 +40,12 @@
<!-- <span>API接口</span>-->
<!-- </div>-->
<!-- </d-button>-->
<!-- <d-button class="jyh-button1" variant="solid" @click="handleLogin('login')">-->
<!-- <div class="flex flex-center">-->
<!-- <img style="height: 15px;margin-right: 8px" width="16" :src="icon_helper" />-->
<!-- <span>帮助文档</span>-->
<!-- </div>-->
<!-- </d-button>-->
<d-button class="jyh-button1" variant="solid" @click="handleHelp">
<div class="flex flex-center">
<img style="height: 15px;margin-right: 8px" width="16" :src="icon_helper" />
<span>帮助文档</span>
</div>
</d-button>
<template v-if="!isLogin">
<d-button @click="handleLogin('register')" class="min-w-[64px]">注册</d-button>
@@ -126,6 +126,23 @@ const gotoAIHome = (row) => {
router.push({ name: 'aihome' });
};
const handleHelp = () => {
// 方法功能:跳转到帮助页面
try {
// 使用 window.location.href 实现页面跳转
// window.location.href = 'http://222.20.126.208:4399/';
// 或者使用 window.open 打开新标签页
window.open('http://222.20.126.208:4399/', '_blank');
console.log('正在跳转到帮助页面');
} catch (error) {
console.error('跳转失败:', error);
// 可以在此处添加错误提示(如使用 Message 组件)
// Message.error('跳转帮助页面失败,请手动访问该链接');
}
};
/* store 用户信息 */
/* @test 后面将清除 */