feat:增加汽车事件模块

This commit is contained in:
2026-07-20 23:19:14 +08:00
parent 6ff52e9d50
commit 4b5f853603
14 changed files with 509 additions and 13 deletions

View File

@@ -4,9 +4,6 @@ import path from 'path'
import { createSvgIconsPlugin } from 'vite-plugin-svg-icons'
import { viteMockServe } from 'vite-plugin-mock'
// const API_HOST = '192.168.1.7'
const API_HOST = '127.0.0.1'
// https://vitejs.dev/config/
export default defineConfig({
plugins: [
@@ -41,15 +38,10 @@ export default defineConfig({
// 服务器代理 服务器没有部署Nginx的情况下使用
proxy: {
'/home-api': {
target: `http://${API_HOST}:8081`,
target: 'http://127.0.0.1:8081',
changeOrigin: true,
rewrite: (item) => item.replace(/^\/home-api/, '')
},
'/blog-api': {
target: `http://${API_HOST}:8082`,
changeOrigin: true,
rewrite: (item) => item.replace(/^\/blog-api/, '')
},
'/alist-api': {
target: 'http://192.168.1.7:5244',
changeOrigin: true,
@@ -61,7 +53,7 @@ export default defineConfig({
rewrite: (item) => item.replace(/^\/image-api/, '')
},
'/agent-api': {
target: `http://${API_HOST}:8000`,
target: 'http://127.0.0.1:8000',
changeOrigin: true,
rewrite: (item) => item.replace(/^\/agent-api/, '')
}