放开店务前端开发访问地址

This commit is contained in:
2026-06-30 23:15:17 +08:00
parent 4f4a782354
commit a8469d1916
2 changed files with 12 additions and 2 deletions
+2 -2
View File
@@ -17,7 +17,7 @@ export default defineConfig(({ mode }) => {
},
server: {
port: 3001,
host: true,
host: '0.0.0.0',
proxy: {
'/admin/api': {
target: proxyTarget,
@@ -30,7 +30,7 @@ export default defineConfig(({ mode }) => {
rewrite: targetPath => proxyToCoreDirectly ? targetPath.replace(/^\/api/, '') : targetPath
}
},
allowedHosts: ['localhost', '127.0.0.1', '2666.online', 'wcy111.top']
allowedHosts: true
}
}
})