fix: 修复私信和主页跳转链接及简化代码
- 修正私信和主页跳转的URL格式错误 - 简化sendMessage和TAHomePage函数逻辑 - 移除dev脚本中的localhost限制
This commit is contained in:
@@ -1641,16 +1641,13 @@ const isBrowser = computed(() => {
|
||||
|
||||
// 点击发送信息
|
||||
const sendMessage = (uin, uid) => {
|
||||
if (typeof messagePrivateItem == "function") {
|
||||
messagePrivateItem({ uin: uin });
|
||||
return;
|
||||
} else redirectToExternalWebsite(`https://bbs.gter.net/home.php?mod=space&showmsg=1&uid=${uin}&uid=${uid}`);
|
||||
if (typeof messagePrivateItem == "function") messagePrivateItem({ uin, uid });
|
||||
else redirectToExternalWebsite(`https://f.gter.net/space??uin=${uin}&uid=${uid}`);
|
||||
};
|
||||
|
||||
// 点击ta的主页
|
||||
const TAHomePage = (uin, uid) => {
|
||||
redirectToExternalWebsite(`https://bbs.gter.net/home.php?mod=space&uid=${uin}&uid=${uid}`);
|
||||
};
|
||||
const TAHomePage = (uin, uid) => redirectToExternalWebsite(`https://f.gter.net/space??uin=${uin}&uid=${uid}`);
|
||||
|
||||
|
||||
// 跳转 url
|
||||
const redirectToExternalWebsite = (url, target = "_blank") => {
|
||||
|
||||
Reference in New Issue
Block a user