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 @@