Commit 2da171af by liwk

commit

1 parent 5e0ab353
...@@ -5,10 +5,9 @@ import { ...@@ -5,10 +5,9 @@ import {
GlAxios GlAxios
} from 'glsx-vue-common' } from 'glsx-vue-common'
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 = window.vm.$config.axios.appKey params.appKey = window.$config.axios.appKey
// params.timestamp = new Date().getTime() // params.timestamp = new Date().getTime()
params.v = '1.0.0' params.v = '1.0.0'
params.format = 'json' params.format = 'json'
......
import sha1 from 'sha1' import sha1 from 'sha1'
import qs from 'qs' import qs from 'qs'
const sign = (params, noSignAttr = []) => { const sign = (params, noSignAttr = []) => {
const secret = window.vm.$config.axios.secret const secret = window.$config.axios.secret
delete params.sign delete params.sign
var objStr = qs.stringify(params, { arrayFormat: 'indices', encode: false, allowDots: true }) var objStr = qs.stringify(params, { arrayFormat: 'indices', encode: false, allowDots: true })
var objVal = objStr.split('&') var objVal = objStr.split('&')
......
...@@ -73,7 +73,7 @@ const getConfig = (url = URL + '/oss_dj_equity_config') => { ...@@ -73,7 +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 window.$config = config
resolve({ resolve({
'vue': Vue, 'vue': Vue,
'config': config 'config': config
......
...@@ -145,7 +145,7 @@ export default { ...@@ -145,7 +145,7 @@ export default {
mixins: [orderMixin, searchMixin], mixins: [orderMixin, searchMixin],
data () { data () {
return { return {
flag: false, flag: true,
tabIndex: '', tabIndex: '',
tableParams: { tableParams: {
listName: 'list', listName: 'list',
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!