mirror of https://github.com/ElemeFE/element
chore: remove getTestEle (#20811)
parent
29956b5de9
commit
06ddc10571
|
@ -405,7 +405,6 @@
|
||||||
import compoLang from '../i18n/component.json';
|
import compoLang from '../i18n/component.json';
|
||||||
import Element from 'main/index.js';
|
import Element from 'main/index.js';
|
||||||
import themeLoader from './theme/loader';
|
import themeLoader from './theme/loader';
|
||||||
import { getTestEle } from './theme/loader/api.js';
|
|
||||||
import bus from '../bus';
|
import bus from '../bus';
|
||||||
import { ACTION_USER_CONFIG_UPDATE } from './theme/constant.js';
|
import { ACTION_USER_CONFIG_UPDATE } from './theme/constant.js';
|
||||||
|
|
||||||
|
@ -453,16 +452,6 @@
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
mounted() {
|
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();
|
const testInnerImg = new Image();
|
||||||
testInnerImg.onload = () => {
|
testInnerImg.onload = () => {
|
||||||
this.$isEle = true;
|
this.$isEle = true;
|
||||||
|
|
|
@ -5,7 +5,6 @@ const { version } = Element;
|
||||||
|
|
||||||
const hostList = {
|
const hostList = {
|
||||||
local: 'http://localhost:3008/',
|
local: 'http://localhost:3008/',
|
||||||
alpha: 'https://element-api.ar.elenet.me/element/theme/',
|
|
||||||
production: 'https://element-api.ele.me/element/theme/'
|
production: 'https://element-api.ele.me/element/theme/'
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -15,10 +14,6 @@ export const getVars = () => {
|
||||||
return get(`${host}getVariable?version=${version}`);
|
return get(`${host}getVariable?version=${version}`);
|
||||||
};
|
};
|
||||||
|
|
||||||
export const getTestEle = () => {
|
|
||||||
return get(`${hostList.alpha}getVariable`);
|
|
||||||
};
|
|
||||||
|
|
||||||
export const updateVars = (data, cb) => {
|
export const updateVars = (data, cb) => {
|
||||||
return post(`${host}updateVariable?version=${version}`, data, cb);
|
return post(`${host}updateVariable?version=${version}`, data, cb);
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in New Issue