feat(backup): 实现备份恢复进度实时显示功能
This commit is contained in:
@@ -51,6 +51,15 @@ export default defineConfig({
|
||||
host: '0.0.0.0',
|
||||
port: port,
|
||||
proxy: {
|
||||
'/api/backup/restore-progress': {
|
||||
target: 'http://localhost:8000',
|
||||
changeOrigin: true,
|
||||
configure: (proxy, _options) => {
|
||||
proxy.on('proxyReq', (proxyReq, req, _res) => {
|
||||
proxyReq.setHeader('Connection', 'keep-alive');
|
||||
});
|
||||
}
|
||||
},
|
||||
'/api': {
|
||||
target: 'http://localhost:8000',
|
||||
changeOrigin: true
|
||||
|
||||
Reference in New Issue
Block a user