mirror of
https://github.com/amtoaer/bili-sync.git
synced 2026-07-07 23:51:47 +08:00
chore: 移除不必要的 image-proxy (#451)
This commit is contained in:
@@ -4,6 +4,7 @@
|
||||
<meta charset="utf-8" />
|
||||
<link rel="icon" href="%sveltekit.assets%/favicon.png" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
||||
<meta name="referrer" content="no-referrer" />
|
||||
%sveltekit.head%
|
||||
</head>
|
||||
<body data-sveltekit-preload-data="hover">
|
||||
|
||||
@@ -125,7 +125,7 @@
|
||||
function getAvatarUrl(): string {
|
||||
switch (type) {
|
||||
case 'upper':
|
||||
return `/image-proxy?url=${(item as UpperWithSubscriptionStatus).face}`;
|
||||
return (item as UpperWithSubscriptionStatus).face;
|
||||
default:
|
||||
return '';
|
||||
}
|
||||
|
||||
@@ -11,8 +11,7 @@ export default defineConfig({
|
||||
ws: true,
|
||||
rewriteWsOrigin: true
|
||||
},
|
||||
'/api': 'http://localhost:12345',
|
||||
'/image-proxy': 'http://localhost:12345'
|
||||
'/api': 'http://localhost:12345'
|
||||
},
|
||||
host: true
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user