This commit is contained in:
2026-04-26 19:03:17 +08:00
parent db0d46009c
commit 44ced193d5
10 changed files with 395 additions and 173 deletions
+9 -4
View File
@@ -5,11 +5,16 @@ import path from 'path'
export default defineConfig({
plugins: [vue()],
resolve: {
alias: {
'@': path.resolve(__dirname, './src')
}
alias: { '@': path.resolve(__dirname, 'src') }
},
server: {
port: 5173
host: '0.0.0.0', // 监听所有地址,包括局域网 IP
port: 5173, // 你的端口号
proxy: {
'/api/v1': {
target: 'http://localhost:18080',
changeOrigin: true
}
}
}
})