mirror of
https://github.com/cool-team-official/cool-admin-vue.git
synced 2025-12-13 14:12:50 +00:00
优化
This commit is contained in:
parent
4ddd359057
commit
7c79a88c18
@ -1,6 +1,6 @@
|
|||||||
const proxy = {
|
const proxy = {
|
||||||
'/dev/': {
|
'/dev/': {
|
||||||
target: 'http://127.0.0.1:8888',
|
target: 'http://127.0.0.1:8001',
|
||||||
changeOrigin: true,
|
changeOrigin: true,
|
||||||
rewrite: (path: string) => path.replace(/^\/dev/, '')
|
rewrite: (path: string) => path.replace(/^\/dev/, '')
|
||||||
},
|
},
|
||||||
@ -12,7 +12,7 @@ const proxy = {
|
|||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
const value = 'prod';
|
const value = 'dev';
|
||||||
const host = proxy[`/${value}/`]?.target;
|
const host = proxy[`/${value}/`]?.target;
|
||||||
|
|
||||||
export { proxy, host, value };
|
export { proxy, host, value };
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user