部分配置支持环境变量

This commit is contained in:
tangly1024
2022-01-19 15:06:33 +08:00
parent f1590f52e8
commit f4f85ff1ed
10 changed files with 93 additions and 120 deletions

View File

@@ -3,14 +3,12 @@ import useAckee from 'use-ackee'
import BLOG from '@/blog.config'
const Ackee = () => {
const ackeeServerUrl = BLOG.ANALYTICS_ACKEE_DATA_SERVER
const ackeeDomainId = BLOG.ANALYTICS_ACKEE_DOMAIN_ID
const router = useRouter()
useAckee(
router.asPath,
{
server: ackeeServerUrl,
domainId: ackeeDomainId
server: BLOG.ANALYTICS_ACKEE_DATA_SERVER,
domainId: BLOG.ANALYTICS_ACKEE_DOMAIN_ID
},
{
detailed: false,