diff --git a/packages/admin/vite.config.ts b/packages/admin/vite.config.ts index 4f71119c..9d128c9b 100644 --- a/packages/admin/vite.config.ts +++ b/packages/admin/vite.config.ts @@ -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': '*', diff --git a/packages/editor/.env.development b/packages/editor/.env.development index 4abaaaa2..420db61e 100644 --- a/packages/editor/.env.development +++ b/packages/editor/.env.development @@ -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 \ No newline at end of file diff --git a/packages/editor/vite.config.ts b/packages/editor/vite.config.ts index 9c9267b1..261e0d04 100644 --- a/packages/editor/vite.config.ts +++ b/packages/editor/vite.config.ts @@ -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': '*',