Commit 2da171af by liwk

commit

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