端口修改
This commit is contained in:
@@ -13,18 +13,18 @@
|
||||
<script type="importmap">
|
||||
{
|
||||
"imports": {
|
||||
"@shared/components": "http://localhost:5000/shared/components.js",
|
||||
"@shared/utils": "http://localhost:5000/shared/utils.js",
|
||||
"@shared/api": "http://localhost:5000/shared/api.js",
|
||||
"@shared/composables": "http://localhost:5000/shared/composables.js",
|
||||
"@shared/types": "http://localhost:5000/shared/types.js"
|
||||
"@shared/components": "http://localhost:7000/shared/components.js",
|
||||
"@shared/utils": "http://localhost:7000/shared/utils.js",
|
||||
"@shared/api": "http://localhost:7000/shared/api.js",
|
||||
"@shared/composables": "http://localhost:7000/shared/composables.js",
|
||||
"@shared/types": "http://localhost:7000/shared/types.js"
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
<!-- 预加载关键模块 -->
|
||||
<link rel="modulepreload" href="http://localhost:5000/shared/components.js">
|
||||
<link rel="modulepreload" href="http://localhost:5000/shared/utils.js">
|
||||
<link rel="modulepreload" href="http://localhost:7000/shared/components.js">
|
||||
<link rel="modulepreload" href="http://localhost:7000/shared/utils.js">
|
||||
</head>
|
||||
<body>
|
||||
<div id="app"></div>
|
||||
|
||||
@@ -34,7 +34,7 @@ export default defineConfig(({ mode }) => ({
|
||||
},
|
||||
|
||||
server: {
|
||||
port: 5002,
|
||||
port: 7002,
|
||||
host: true,
|
||||
cors: true,
|
||||
open: '/bidding/', // 开发时自动打开到 /bidding/ 路径
|
||||
@@ -46,7 +46,7 @@ export default defineConfig(({ mode }) => ({
|
||||
},
|
||||
// 代理共享模块请求到 shared 服务
|
||||
'/shared': {
|
||||
target: 'http://localhost:5000',
|
||||
target: 'http://localhost:7000',
|
||||
changeOrigin: true
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user