This commit is contained in:
那些花儿
2025-04-25 08:48:11 +08:00
parent 94656c9449
commit 89c2b07ca9
19 changed files with 1702 additions and 1604 deletions
+7 -1
View File
@@ -3,6 +3,7 @@ import uni from '@dcloudio/vite-plugin-uni'
import AutoImport from 'unplugin-auto-import/vite';
import Components from 'unplugin-vue-components/vite';
import { TDesignResolver } from 'unplugin-vue-components/resolvers';
import path from 'path';
// https://vitejs.dev/config/
@@ -20,10 +21,15 @@ export default defineConfig({
})],
})
],
resolve: {
alias: {
'@': path.resolve(__dirname, './src')
}
},
server: {
proxy: {
'/api': {
target: 'http://192.168.41.118:9090',
target: 'http://192.168.0.107:9090',
changeOrigin: true,
rewrite: (path) => path.replace(/^\/api/, '')
}