feat:额外产物添加

This commit is contained in:
liailing1026
2025-12-21 15:28:59 +08:00
parent b42ab5aedd
commit b987fe70ad
11 changed files with 281 additions and 587 deletions

View File

@@ -14,6 +14,7 @@ const pathSrc = resolve(__dirname, 'src')
// https://vite.dev/config/
export default defineConfig({
base: '',
plugins: [
vue(),
tailwindcss(),
@@ -46,12 +47,12 @@ export default defineConfig({
'/api': {
changeOrigin: true,
// 接口地址
// target: 'http://82.157.183.212:21092',
target: 'http://localhost:8000',
rewrite: (path: string) => path.replace(/^\/api/, ''),
configure: (proxy, options) => {
console.log('Proxy configured:', options)
},
target: 'http://82.157.183.212:21092',
// target: 'http://localhost:8000',
// rewrite: (path: string) => path.replace(/^\/api/, ''),
// configure: (proxy, options) => {
// console.log('Proxy configured:', options)
// },
},
},
},