From 94c18bcc09ac880dcef2e840f794b5bbd174dbbe Mon Sep 17 00:00:00 2001 From: dingtalk_umvbsp Date: Sat, 14 Jan 2023 17:41:39 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E8=AF=B7=E6=B1=82=E6=96=B9?= =?UTF-8?q?=E6=B3=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- common/request.js | 6 +++--- components/form.vue | 21 ++++++++++++++++----- pages/massif/info.vue | 3 ++- 3 files changed, 21 insertions(+), 9 deletions(-) diff --git a/common/request.js b/common/request.js index f25c4b0..b56a794 100644 --- a/common/request.js +++ b/common/request.js @@ -1,11 +1,11 @@ import store from "@/store" -function host(host='default'){ +export function host(host='default',suffix='/plant_manage'){ return( process.env.NODE_ENV === 'development'?{ - default:"http://qv6mj8.natappfree.cc/plant_manage" + default:`http://qv6mj8.natappfree.cc${suffix}` }:{ - default:"http://vtm3hk.natappfree.cc/plant_manage" + default:`http://qv6mj8.natappfree.cc${suffix}` } )[host] } diff --git a/components/form.vue b/components/form.vue index f556940..250deb0 100644 --- a/components/form.vue +++ b/components/form.vue @@ -147,7 +147,7 @@ {{/^\d+$/.test(value)&&columns[0][value][keyName]||placeholder||`请选择${label}`}} - + 添加照片 @@ -198,7 +198,7 @@