Commit f11b8875 by 胡悦

修改配置信息和上传图片接口

1 parent afff71a9
...@@ -9,7 +9,7 @@ ...@@ -9,7 +9,7 @@
}, },
"dependencies": { "dependencies": {
"axios": "^0.18.0", "axios": "^0.18.0",
"glsx-vue-common": "^1.2.1", "glsx-vue-common": "^1.2.4",
"glsx-vue-components": "^1.0.13", "glsx-vue-components": "^1.0.13",
"js-md5": "^0.7.3", "js-md5": "^0.7.3",
"node-sass": "^4.9.3", "node-sass": "^4.9.3",
......
...@@ -105,7 +105,7 @@ var mixin = { ...@@ -105,7 +105,7 @@ var mixin = {
// } // }
} }
} }
const URL = 'http://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 + '/business_data_config') => { const getConfig = (url = URL + '/business_data_config') => {
return new Promise(resolve => { return new Promise(resolve => {
const xhr = new XMLHttpRequest() const xhr = new XMLHttpRequest()
......
...@@ -389,7 +389,8 @@ export default { ...@@ -389,7 +389,8 @@ export default {
// this.uploadAction = 'http://192.168.2.109:8085/customer/gfs.test.glsx.com.cn' // this.uploadAction = 'http://192.168.2.109:8085/customer/gfs.test.glsx.com.cn'
// this.uploadAction = 'https://jsonplaceholder.typicode.com/posts/' // this.uploadAction = 'https://jsonplaceholder.typicode.com/posts/'
// console.log(this.$get_session_common_config()) // console.log(this.$get_session_common_config())
this.uploadAction = 'http://192.168.3.217:9220/file/upstring' // this.uploadAction = 'http://192.168.3.217:9220/file/upstring'
this.uploadAction = 'http://gfs.glsx.com.cn/file/upstring'
this.$root.eventBus.$on('params', (params) => { this.$root.eventBus.$on('params', (params) => {
this.activeName = 'first' this.activeName = 'first'
this.isVisible = false this.isVisible = false
......
...@@ -108,7 +108,7 @@ export default { ...@@ -108,7 +108,7 @@ export default {
this.resetAll() this.resetAll()
}) })
// 初始化 // 初始化
this.$request({ url: 'http://oss-config.test.glsx.com.cn/mock/5be17454f31545347559d499/config/area_config' }).then(data => { this.$request({ url: 'https://oss-config.test.glsx.com.cn/mock/5be17454f31545347559d499/config/area_config' }).then(data => {
this.AllData = JSON.parse(data.data).provinceInfoList this.AllData = JSON.parse(data.data).provinceInfoList
this.AllData.forEach(element => { this.AllData.forEach(element => {
this.provinceList.push({ provinceId: element.provinceId, provinceName: element.provinceName }) this.provinceList.push({ provinceId: element.provinceId, provinceName: element.provinceName })
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!