Skip to content

Commit 3995f9c

Browse files
cs1707cn3lfs
authored andcommitted
chore: remove getTestEle (ElemeFE#20811)
1 parent 75287f7 commit 3995f9c

File tree

2 files changed

+0
-16
lines changed

2 files changed

+0
-16
lines changed

examples/components/header.vue

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -405,7 +405,6 @@
405405
import compoLang from '../i18n/component.json';
406406
import Element from 'main/index.js';
407407
import themeLoader from './theme/loader';
408-
import { getTestEle } from './theme/loader/api.js';
409408
import bus from '../bus';
410409
import { ACTION_USER_CONFIG_UPDATE } from './theme/constant.js';
411410
@@ -453,16 +452,6 @@
453452
}
454453
},
455454
mounted() {
456-
getTestEle()
457-
.then(() => {
458-
this.$isEle = true;
459-
ga('send', 'event', 'DocView', 'Ele', 'Inner');
460-
})
461-
.catch((err) => {
462-
ga('send', 'event', 'DocView', 'Ele', 'Outer');
463-
console.error(err);
464-
});
465-
466455
const testInnerImg = new Image();
467456
testInnerImg.onload = () => {
468457
this.$isEle = true;

examples/components/theme/loader/api.js

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@ const { version } = Element;
55

66
const hostList = {
77
local: 'http://localhost:3008/',
8-
alpha: 'https://element-api.ar.elenet.me/element/theme/',
98
production: 'https://element-api.ele.me/element/theme/'
109
};
1110

@@ -15,10 +14,6 @@ export const getVars = () => {
1514
return get(`${host}getVariable?version=${version}`);
1615
};
1716

18-
export const getTestEle = () => {
19-
return get(`${hostList.alpha}getVariable`);
20-
};
21-
2217
export const updateVars = (data, cb) => {
2318
return post(`${host}updateVariable?version=${version}`, data, cb);
2419
};

0 commit comments

Comments
 (0)