add stat fix

This commit is contained in:
2026-01-17 00:41:14 +08:00
parent 94d7d6e8a2
commit e12908f54f
3 changed files with 114 additions and 2 deletions

View File

@@ -1,3 +1,4 @@
import { useKey } from '@kevisual/use-config';
import { config } from '../../config.ts';
/**
@@ -9,7 +10,7 @@ export const addStat = (html: string, addStat = true) => {
if (!addStat) {
return html;
}
const { websiteId } = config.stat || {};
const websiteId = useKey('DATA_WEBSITE_ID')
if (!websiteId) {
return html;
}