diff --git a/public/index.html b/public/index.html index 7d00fe5..79d2b80 100644 --- a/public/index.html +++ b/public/index.html @@ -286,6 +286,23 @@ + ${Object.keys(data.top_referers).length > 0 ? ` +
+
+

🔗 访问来源

+
+
+ ${Object.entries(data.top_referers) + .sort(([,a], [,b]) => b - a) + .map(([referer, count]) => ` +
+ ${referer || '直接访问'} + ${count} +
+ `).join('')} +
+
+ ` : ''} `;