diff --git a/admin/src/config/index.ts b/admin/src/config/index.ts index 10bbb3da..4bf4e940 100644 --- a/admin/src/config/index.ts +++ b/admin/src/config/index.ts @@ -2,8 +2,8 @@ const config = { terminal: 1, //终端 title: '后台管理系统', //网站默认标题 version: '1.6.0', //版本号 - baseUrl: `${import.meta.env.VITE_APP_BASE_URL || ''}/`, //请求接口域名 - // baseUrl: 'http://127.0.0.1:30005/', + // baseUrl: `${import.meta.env.VITE_APP_BASE_URL || ''}/`, //请求接口域名 + baseUrl: 'http://127.0.0.1:30005/', urlPrefix: 'adminapi', //请求默认前缀 timeout: 10 * 1000 //请求超时时长 } diff --git a/admin/src/views/land_plant/edit.vue b/admin/src/views/land_plant/edit.vue index 1b775428..3e044b05 100644 --- a/admin/src/views/land_plant/edit.vue +++ b/admin/src/views/land_plant/edit.vue @@ -52,9 +52,9 @@ /> - + $params['user'], 'remark' => $params['remark'], 'status' => $params['status'], - 'pic' => json_encode($params['pic']), 'qr_code' => $params['qr_code'], 'plant_date' => strtotime($params['plant_date']), ]); @@ -91,7 +90,6 @@ class LandPlantLogic extends BaseLogic 'user' => $params['user'], 'remark' => $params['remark'], 'status' => $params['status'], - 'pic' => json_encode($params['pic']), 'qr_code' => $params['qr_code'], 'plant_date' => strtotime($params['plant_date']), ]);