mirror of
https://github.com/silenty4ng/k5web
synced 2025-01-15 00:03:35 +00:00
update
This commit is contained in:
parent
9ba81c36cb
commit
d288a54108
4 changed files with 5 additions and 3 deletions
|
@ -1 +1,2 @@
|
|||
VITE_API_BASE_URL= 'http://localhost:8080'
|
||||
VITE_API_BASE_URL= 'http://localhost:8080'
|
||||
VITE_METER_SITE = ''
|
||||
|
|
|
@ -0,0 +1 @@
|
|||
VITE_METER_SITE = 'k5.vicicode.com,k5.vicicode.cn,k5.lhw711.cn,mm.md,k5.mm.md'
|
|
@ -35,7 +35,7 @@
|
|||
window.TextDecoder = TextDecoder;
|
||||
|
||||
// 遥测
|
||||
if(location.hostname == 'k5.vicicode.com' || location.hostname == 'k5.vicicode.cn' || location.hostname == 'k5.lhw711.cn' || location.hostname == 'mm.md' || location.hostname == 'k5.mm.md'){
|
||||
if(import.meta.env.VITE_METER_SITE.split(',').indexOf(location.hostname) !== -1){
|
||||
const aegis = new Aegis({
|
||||
id: 'yr5DeslJkz3Qn20jg0', // 上报 id
|
||||
reportApiSpeed: true, // 接口测速
|
||||
|
|
|
@ -39,7 +39,7 @@ app.use(i18n);
|
|||
app.use(globalComponents);
|
||||
app.use(directive);
|
||||
|
||||
if(location.hostname == 'k5.vicicode.com' || location.hostname == 'k5.vicicode.cn' || location.hostname == 'k5.lhw711.cn' || location.hostname == 'mm.md' || location.hostname == 'k5.mm.md'){
|
||||
if(import.meta.env.VITE_METER_SITE.split(',').indexOf(location.hostname) !== -1){
|
||||
app.use(VueMatomo, {
|
||||
host: '//analytics.vicicode.com',
|
||||
siteId: 2,
|
||||
|
|
Loading…
Reference in a new issue