代理处理 首页处理

This commit is contained in:
wwz
2025-02-10 15:52:10 +08:00
parent ede860cec3
commit 6cea5aeb42
12 changed files with 519 additions and 138 deletions

19
vite.config.js Normal file
View File

@@ -0,0 +1,19 @@
import {
defineConfig
} from 'vite';
import uni from '@dcloudio/vite-plugin-uni';
export default defineConfig({
plugins: [uni()],
server: {
hmr: true,
proxy: {
'/api': {
target: 'https://cashier.sxczgkj.cn',
changeOrigin: true,
rewrite: path => path.replace(/^\/api/, ''),
secure: false
}
}
}
})