|
|
@ -10,10 +10,11 @@ import axios from 'axios'; |
|
|
|
let startApp = function() { |
|
|
|
console.log('startApp', 'startApp') |
|
|
|
uni.request({ |
|
|
|
url: './static/config.json' |
|
|
|
url: `./static/config.json?t=${new Date().getTime()}` |
|
|
|
}).then(res => { |
|
|
|
//在配置中读url,company等信息
|
|
|
|
Vue.prototype.$dev_url = res[1].data.params.dev; |
|
|
|
console.log("请求地址",Vue.prototype.$dev_url) |
|
|
|
Vue.prototype.$companyCode = res[1].data.params.companyCode; |
|
|
|
Vue.prototype.$warehouseCode = res[1].data.params.warehouseCode; |
|
|
|
Vue.prototype.$putawayLocationTypes = res[1].data.params.putawayLocationTypes; //创建上架任务的库存类型
|
|
|
|