mirror of
https://gitee.com/java110/MicroCommunityWeb.git
synced 2026-02-23 21:36:37 +08:00
v1.9 修复水电导表提示错误问题
This commit is contained in:
parent
829c544e72
commit
1f106db540
@ -184,8 +184,8 @@ export default {
|
|||||||
|
|
||||||
try {
|
try {
|
||||||
const res = await importMeterWaterData(formData)
|
const res = await importMeterWaterData(formData)
|
||||||
if(!res.code){
|
if( res.code != 0){
|
||||||
this.$message.error(res)
|
this.$message.error(res.msg)
|
||||||
return ;
|
return ;
|
||||||
}
|
}
|
||||||
this.$message.success(this.$t('meterWater.importSuccess'))
|
this.$message.success(this.$t('meterWater.importSuccess'))
|
||||||
|
|||||||
@ -188,7 +188,10 @@ export default {
|
|||||||
|
|
||||||
try {
|
try {
|
||||||
const res = await importMeterWaterData(formData)
|
const res = await importMeterWaterData(formData)
|
||||||
|
if( res.code != 0){
|
||||||
|
this.$message.error(res.msg)
|
||||||
|
return ;
|
||||||
|
}
|
||||||
this.$message.success(this.$t('meterWater.importSuccess'))
|
this.$message.success(this.$t('meterWater.importSuccess'))
|
||||||
this.dialogVisible = false
|
this.dialogVisible = false
|
||||||
this.$emit('success', res.logId)
|
this.$emit('success', res.logId)
|
||||||
|
|||||||
@ -4,14 +4,14 @@ module.exports = {
|
|||||||
open: true, // 自动打开浏览器
|
open: true, // 自动打开浏览器
|
||||||
proxy: {
|
proxy: {
|
||||||
'/app': {
|
'/app': {
|
||||||
target: 'http://127.0.0.1:8008/app', // 后端API地址
|
target: 'http://demo.homecommunity.cn/app', // 后端API地址
|
||||||
changeOrigin: true,
|
changeOrigin: true,
|
||||||
pathRewrite: {
|
pathRewrite: {
|
||||||
'^/app': ''
|
'^/app': ''
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
'/callComponent': {
|
'/callComponent': {
|
||||||
target: 'http://127.0.0.1:8008/callComponent', // 后端API地址
|
target: 'http://demo.homecommunity.cn/callComponent', // 后端API地址
|
||||||
changeOrigin: true,
|
changeOrigin: true,
|
||||||
pathRewrite: {
|
pathRewrite: {
|
||||||
'^/callComponent': ''
|
'^/callComponent': ''
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user