移植所有功能
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
yiqiu
2025-11-21 15:47:29 +08:00
parent 50acc9e2bb
commit 74a008fe98
4 changed files with 15 additions and 3 deletions

View File

@@ -237,9 +237,14 @@ $(function () {
location.href = commentObj.dcim_product_link;
});
};
$(".line-server-btn").click(function () {
window.open($(this).data("url"));
});
$(".line-server-btn").click(function () {
const commentObj = sessionStorage.commentData
? JSON.parse(sessionStorage.commentData)
: null;
if (commentObj && commentObj.online_customer_service_link) {
window.open(commentObj.online_customer_service_link);
}
});
// 跳转函数
const goOtherPage = (url) => {
sessionStorage.redirectUrl = location.href;