Browse Source

修改仓库初始化获取参数结构

fix_bug_pro20231227
13208366016 11 months ago
parent
commit
79066f066c
  1. 4
      src/page/index/index.vue
  2. 4
      vite.config.js

4
src/page/index/index.vue

@ -78,8 +78,8 @@ export default {
created() { created() {
getMyCurrentWarehouse().then(res => { getMyCurrentWarehouse().then(res => {
console.log(res, '初始化请求参数'); console.log(res, '初始化请求参数');
console.log(res.data.name, '仓库名称'); console.log(res.data.data.name, '仓库名称');
localStorage.setItem('WarehouseName', res.data.name); localStorage.setItem('WarehouseName', res.data.data.name);
}); });
}, },
mounted() { mounted() {

4
vite.config.js

@ -20,11 +20,11 @@ export default ({ mode, command }) => {
// cyz // cyz
// target: 'http://192.168.10.75:8777', // target: 'http://192.168.10.75:8777',
// tjj // tjj
target: 'http://192.168.10.29:13000', // target: 'http://192.168.10.29:13000',
// sst // sst
// target: 'http://192.168.10.94:8888', // target: 'http://192.168.10.94:8888',
// target: 'http://192.168.10.29:13000', // target: 'http://192.168.10.29:13000',
// target: 'http://test.api.huitongys.com', target: 'http://test.api.huitongys.com',
// target: 'http://h5uapi.huitongys.com', // target: 'http://h5uapi.huitongys.com',
changeOrigin: true, changeOrigin: true,
rewrite: path => path.replace(/^\/api/, ''), rewrite: path => path.replace(/^\/api/, ''),

Loading…
Cancel
Save