期初数据前台
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

123456789101112131415161718
  1. import { defineConfig } from 'vite'
  2. import vue from '@vitejs/plugin-vue'
  3. // https://vitejs.dev/config/
  4. export default defineConfig({
  5. plugins: [vue()],
  6. server: {
  7. port: 3000,
  8. open: true,
  9. proxy: {
  10. '/api': {
  11. target: 'http://localhost:8080',
  12. changeOrigin: true,
  13. rewrite: (path) => path.replace(/^\/api/, '')
  14. }
  15. }
  16. }
  17. })