前端添加中英文切换
This commit is contained in:
@@ -8,6 +8,13 @@ export default defineConfig(({ mode }) => {
|
||||
server: {
|
||||
port: 3000,
|
||||
host: '0.0.0.0',
|
||||
proxy: {
|
||||
'/api-proxy': {
|
||||
target: 'http://127.0.0.1:8000',
|
||||
changeOrigin: true,
|
||||
rewrite: (path) => path.replace(/^\/api-proxy/, ''),
|
||||
},
|
||||
},
|
||||
},
|
||||
publicDir: 'static',
|
||||
plugins: [react()],
|
||||
|
||||
Reference in New Issue
Block a user