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/, ''),