Commit fdcf1553 by liwk

test

1 parent 6fb24eb9
......@@ -4,7 +4,9 @@ import RequestMethods from './request.methods'
import {
GlAxios
} from 'glsx-vue-common'
import base from '@/base'
const request = (params = {}, url, method = RequestMethods.POST, noSignAttr = []) => {
console.log('出发', window.vm.$config)
params.method = url.trimStart().trimEnd()
// this.$get_session_common_config().axios.sys.appKey
params.appKey = '48e5e13229b82c1b4e6e8c96151f0637'
......
......@@ -66,7 +66,6 @@ var mixin = {
},
}
const URL = 'https://oss-config.test.glsx.com.cn/mock/5be17454f31545347559d499/config'
const getConfig = (url = URL + '/oss_dj_equity_config') => {
return new Promise(resolve => {
......@@ -74,6 +73,7 @@ const getConfig = (url = URL + '/oss_dj_equity_config') => {
xhr.onreadystatechange = () => {
if (xhr.readyState === 4 && xhr.status === 200) {
let config = JSON.parse(xhr.responseText)
Vue.prototype.$config = config
resolve({
'vue': Vue,
'config': config
......@@ -95,5 +95,5 @@ const render = App => {
}
export default {
render,
getConfig
getConfig,
}
\ No newline at end of file
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!