Commit fdcf1553 by liwk

test

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