fix(@vben/common-ui): 更新下载链接和代理配置
This commit is contained in:
parent
97593b7dc1
commit
4106c97d53
@ -10,8 +10,8 @@ export default defineConfig(async () => {
|
|||||||
changeOrigin: true,
|
changeOrigin: true,
|
||||||
rewrite: (path) => path.replace(/^\/api/, ''),
|
rewrite: (path) => path.replace(/^\/api/, ''),
|
||||||
// mock代理目标地址
|
// mock代理目标地址
|
||||||
target: 'http://localhost:8081/api',
|
// target: 'http://localhost:8081/api',
|
||||||
// target: 'http://43.139.10.64:8082/api',
|
target: 'http://43.139.10.64:8082/api',
|
||||||
// target: 'http://192.168.3.238:8081/api',
|
// target: 'http://192.168.3.238:8081/api',
|
||||||
ws: true,
|
ws: true,
|
||||||
},
|
},
|
||||||
|
@ -182,7 +182,7 @@ const startPolling = async () => {
|
|||||||
style: { marginLeft: '10px' },
|
style: { marginLeft: '10px' },
|
||||||
onClick: () => {
|
onClick: () => {
|
||||||
const link = document.createElement('a');
|
const link = document.createElement('a');
|
||||||
link.href = download_url;
|
link.href = `http://47.112.173.8:6806${download_url}`;
|
||||||
link.download = fetchResult.value;
|
link.download = fetchResult.value;
|
||||||
document.body.append(link);
|
document.body.append(link);
|
||||||
link.click();
|
link.click();
|
||||||
|
Loading…
Reference in New Issue
Block a user