Commit 1f106db54068cb6d3e10732f5bf1a2703160724b

Authored by wuxw
1 parent 829c544e

v1.9 修复水电导表提示错误问题

src/components/fee/importMeterWaterFee.vue
... ... @@ -184,8 +184,8 @@ export default {
184 184  
185 185 try {
186 186 const res = await importMeterWaterData(formData)
187   - if(!res.code){
188   - this.$message.error(res)
  187 + if( res.code != 0){
  188 + this.$message.error(res.msg)
189 189 return ;
190 190 }
191 191 this.$message.success(this.$t('meterWater.importSuccess'))
... ...
src/components/fee/importMeterWaterFee2.vue
... ... @@ -188,7 +188,10 @@ export default {
188 188  
189 189 try {
190 190 const res = await importMeterWaterData(formData)
191   -
  191 + if( res.code != 0){
  192 + this.$message.error(res.msg)
  193 + return ;
  194 + }
192 195 this.$message.success(this.$t('meterWater.importSuccess'))
193 196 this.dialogVisible = false
194 197 this.$emit('success', res.logId)
... ...
vue.config.js
... ... @@ -4,14 +4,14 @@ module.exports = {
4 4 open: true, // 自动打开浏览器
5 5 proxy: {
6 6 '/app': {
7   - target: 'http://127.0.0.1:8008/app', // 后端API地址
  7 + target: 'http://demo.homecommunity.cn/app', // 后端API地址
8 8 changeOrigin: true,
9 9 pathRewrite: {
10 10 '^/app': ''
11 11 }
12 12 },
13 13 '/callComponent': {
14   - target: 'http://127.0.0.1:8008/callComponent', // 后端API地址
  14 + target: 'http://demo.homecommunity.cn/callComponent', // 后端API地址
15 15 changeOrigin: true,
16 16 pathRewrite: {
17 17 '^/callComponent': ''
... ...