@@ -1,4 +1,8 @@
+let baseUrl = 'http://wx.hw.hongweisoft.com/parking/'
+if (process.env.NODE_ENV === 'development') {
+ baseUrl = '/api'
+}
export const config = {
- baseUrl: 'https://wx.hw.hongweisoft.com/parking/',
+ baseUrl,
version: '0.1.5'
}
@@ -41,7 +41,7 @@
getRecordList() {
uni.$u.api.deviceAbnormalApi.getDeviceAbnormalListApi({
pageNum: this.page,
- pageSize: 10
+ pageSize: 15
}).then(res => {
if (res.code === 200) {
this.recordList = this.recordList.concat(res.data.rows)
@@ -4,7 +4,7 @@ module.exports = {
disableHostCheck:true,
proxy:{
'/api':{
- target: 'http://parking.hw.hongweisoft.com/pudprod-api/',
+ target: 'http://wx.hw.hongweisoft.com/parking/',
changeOrigin: true,
pathRewrite:{
'^/api': ''