Skip to content

Commit 867bbec

Browse files
iamkunlzq4047
authored andcommitted
Chore: Mark ali inner user's access (ElemeFE#16609)
* Chore: update theme inner api * Chore: update theme inner api * Chore: text * Chore: fix * Chore: fix
1 parent 1099a36 commit 867bbec

File tree

2 files changed

+16
-2
lines changed

2 files changed

+16
-2
lines changed

examples/components/header.vue

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -380,7 +380,7 @@
380380
import compoLang from '../i18n/component.json';
381381
import Element from 'main/index.js';
382382
import themeLoader from './theme/loader';
383-
import { getTestEle } from './theme/loader/api.js';
383+
import { getTestEle, getTestAli } from './theme/loader/api.js';
384384
import bus from '../bus';
385385
import { ACTION_USER_CONFIG_UPDATE } from './theme/constant.js';
386386
@@ -428,9 +428,19 @@
428428
getTestEle()
429429
.then(() => {
430430
this.$isEle = true;
431-
ga('send', 'event', 'DocView', 'Inner');
431+
ga('send', 'event', 'DocView', 'Ele', 'Inner');
432432
})
433433
.catch((err) => {
434+
ga('send', 'event', 'DocView', 'Ele', 'Outer');
435+
console.error(err);
436+
});
437+
getTestAli()
438+
.then(() => {
439+
this.$isEle = true;
440+
ga('send', 'event', 'DocView', 'Ali', 'Inner');
441+
})
442+
.catch((err) => {
443+
ga('send', 'event', 'DocView', 'Ali', 'Outer');
434444
console.error(err);
435445
});
436446
},

examples/components/theme/loader/api.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,10 @@ export const getTestEle = () => {
1919
return get(`${hostList.alpha}getVariable`);
2020
};
2121

22+
export const getTestAli = () => {
23+
return get(`https://private-alipayobjects.alipay.com/alipay-rmsdeploy-image/rmsportal/VmvVUItLdPNqKlNGuRHi.png?t=${Date.now()}`);
24+
};
25+
2226
export const updateVars = (data, cb) => {
2327
return post(`${host}updateVariable?version=${version}`, data, cb);
2428
};

0 commit comments

Comments
 (0)