Skip to content

Commit

Permalink
fix: 开放前端项目IP访问
Browse files Browse the repository at this point in the history
解决控制台提示 Network: use --host to expose,且无法通过 127.0.0.1 等 IP 访问的问题
  • Loading branch information
Charles7c committed Oct 31, 2023
1 parent e9ee6cb commit 22a291d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion continew-admin-ui/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"author": "Charles7c",
"license": "Apache-2.0",
"scripts": {
"dev": "vite --config ./config/vite.config.dev.ts",
"dev": "vite --host --config ./config/vite.config.dev.ts",
"build": "vue-tsc --noEmit && vite build --config ./config/vite.config.prod.ts",
"report": "cross-env REPORT=true npm run build",
"preview": "npm run build && vite preview --host",
Expand Down

0 comments on commit 22a291d

Please sign in to comment.