From 79066f066cd97b8de90f0d86420b5913df3cdd7a Mon Sep 17 00:00:00 2001 From: 13208366016 <47278630@qq.com> Date: Sat, 11 Nov 2023 23:55:03 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E4=BB=93=E5=BA=93=E5=88=9D?= =?UTF-8?q?=E5=A7=8B=E5=8C=96=E8=8E=B7=E5=8F=96=E5=8F=82=E6=95=B0=E7=BB=93?= =?UTF-8?q?=E6=9E=84?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/page/index/index.vue | 4 ++-- vite.config.js | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/page/index/index.vue b/src/page/index/index.vue index 5a676b23..f06e9713 100644 --- a/src/page/index/index.vue +++ b/src/page/index/index.vue @@ -78,8 +78,8 @@ export default { created() { getMyCurrentWarehouse().then(res => { console.log(res, '初始化请求参数'); - console.log(res.data.name, '仓库名称'); - localStorage.setItem('WarehouseName', res.data.name); + console.log(res.data.data.name, '仓库名称'); + localStorage.setItem('WarehouseName', res.data.data.name); }); }, mounted() { diff --git a/vite.config.js b/vite.config.js index 1dd07766..8e6ca901 100644 --- a/vite.config.js +++ b/vite.config.js @@ -20,11 +20,11 @@ export default ({ mode, command }) => { // cyz // target: 'http://192.168.10.75:8777', // tjj - target: 'http://192.168.10.29:13000', + // target: 'http://192.168.10.29:13000', // sst // target: 'http://192.168.10.94:8888', // target: 'http://192.168.10.29:13000', - // target: 'http://test.api.huitongys.com', + target: 'http://test.api.huitongys.com', // target: 'http://h5uapi.huitongys.com', changeOrigin: true, rewrite: path => path.replace(/^\/api/, ''),