Skip to content

Commit

Permalink
fix: 修改本地端口
Browse files Browse the repository at this point in the history
  • Loading branch information
jianbing.chen committed Aug 13, 2024
1 parent 1300250 commit ccc09a6
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion packages/admin/vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ export default defineConfig({
outDir: '../../dist/admin',
},
server: {
host: 'localhost',
host: '127.0.0.1',
port: 8090,
headers: {
'Access-Control-Allow-Origin': '*',
Expand Down
4 changes: 2 additions & 2 deletions packages/editor/.env.development
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# 接口地址
VITE_BASE_API=http://localhost:5000/api
# VITE_BASE_API=http://mars-api.marsview.cc/api
# VITE_BASE_API=http://localhost:5000/api
VITE_BASE_API=http://mars-api.marsview.cc/api
# 后台访问地址
VITE_ADMIN_URL=http://admin.marsview.cc
2 changes: 1 addition & 1 deletion packages/editor/vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ export default defineConfig({
outDir: '../../dist/editor',
},
server: {
host: 'localhost',
host: '127.0.0.1',
port: 8080,
headers: {
'Access-Control-Allow-Origin': '*',
Expand Down

0 comments on commit ccc09a6

Please sign in to comment.