From 3fd37ce5651f030d005f4ec4e8af0c95413b46ff Mon Sep 17 00:00:00 2001 From: dingtalk_umvbsp Date: Thu, 2 Feb 2023 11:29:37 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E9=A1=B5=E9=9D=A2=E6=95=B0?= =?UTF-8?q?=E6=8D=AE=E6=98=BE=E7=A4=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- common/request.js | 2 +- pages/home/index.vue | 7 +++---- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/common/request.js b/common/request.js index 1ec414d..1d21435 100644 --- a/common/request.js +++ b/common/request.js @@ -3,7 +3,7 @@ import store from "@/store" export function host(host='default',suffix='/plant_manage'){ var url=process.env.NODE_ENV === 'development'?{ // default:`http://wmyrzw.natappfree.cc` //陈 - default:`http://b9uckg.natappfree.cc` //马 + default:`http://e6jad6.natappfree.cc` //马 }:{ default:`http://qv6mj8.natappfree.cc` } diff --git a/pages/home/index.vue b/pages/home/index.vue index da180b9..c9f48d4 100644 --- a/pages/home/index.vue +++ b/pages/home/index.vue @@ -359,9 +359,9 @@ import request from '@/common/request.js' return this.$store.getters.userInfo.roleCode=='companyAdmin' }, isEmpty(){ - if(!baseIndex)return (this.baseInfo.farmWork||[]).length+(baseInfo.farmingInput||[]).length<=0 - else if(baseIndex=='record')return (this.baseInfo.farmWork||[]).length<=0 - else return (baseInfo.farmingInput||[]).length<=0 + if(!this.baseIndex)return (this.baseInfo.farmWork||[]).length+(this.baseInfo.farmingInput||[]).length<=0 + else if(this.baseIndex=='record')return (this.baseInfo.farmWork||[]).length<=0 + else return (this.baseInfo.farmingInput||[]).length<=0 }, }, watch:{ @@ -410,7 +410,6 @@ import request from '@/common/request.js' } }, async getBaseInfo(plantBaseId){ - console.log('-------------getBaseInfo-----------------') var res=await request("/api/plantIndex/queryFarmWorkAndInput",{ params:{plantBaseId} })