fix: 更换前端端口 9948 -> 18081 解决 Windows 权限问题
- 前端端口改为 18081 - 添加 host: 127.0.0.1 配置 - 更新 CORS 允许新前端地址 - 更新启动/停止脚本
This commit is contained in:
@@ -5,13 +5,15 @@ import vue from '@vitejs/plugin-vue'
|
||||
export default defineConfig({
|
||||
plugins: [vue()],
|
||||
server: {
|
||||
port: 9948,
|
||||
port: 18081,
|
||||
// 支持 Vue Router 的 history 模式
|
||||
historyApiFallback: true
|
||||
historyApiFallback: true,
|
||||
host: '127.0.0.1'
|
||||
},
|
||||
preview: {
|
||||
port: 9948,
|
||||
historyApiFallback: true
|
||||
port: 18081,
|
||||
historyApiFallback: true,
|
||||
host: '127.0.0.1'
|
||||
},
|
||||
build: {
|
||||
rollupOptions: {
|
||||
|
||||
Reference in New Issue
Block a user