Skip to content

Commit

Permalink
chore: remove getTestEle (ElemeFE#20811)
Browse files Browse the repository at this point in the history
  • Loading branch information
cs1707 authored and cn3lfs committed Feb 24, 2022
1 parent 75287f7 commit 3995f9c
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 16 deletions.
11 changes: 0 additions & 11 deletions examples/components/header.vue
Original file line number Diff line number Diff line change
Expand Up @@ -405,7 +405,6 @@
import compoLang from '../i18n/component.json';
import Element from 'main/index.js';
import themeLoader from './theme/loader';
import { getTestEle } from './theme/loader/api.js';
import bus from '../bus';
import { ACTION_USER_CONFIG_UPDATE } from './theme/constant.js';
Expand Down Expand Up @@ -453,16 +452,6 @@
}
},
mounted() {
getTestEle()
.then(() => {
this.$isEle = true;
ga('send', 'event', 'DocView', 'Ele', 'Inner');
})
.catch((err) => {
ga('send', 'event', 'DocView', 'Ele', 'Outer');
console.error(err);
});
const testInnerImg = new Image();
testInnerImg.onload = () => {
this.$isEle = true;
Expand Down
5 changes: 0 additions & 5 deletions examples/components/theme/loader/api.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ const { version } = Element;

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

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

export const getTestEle = () => {
return get(`${hostList.alpha}getVariable`);
};

export const updateVars = (data, cb) => {
return post(`${host}updateVariable?version=${version}`, data, cb);
};

0 comments on commit 3995f9c

Please sign in to comment.