mirror of
https://github.com/JefferyHcool/BiliNote.git
synced 2026-06-28 03:01:28 +08:00
feat: 更新图片路径生成逻辑- 修改了生成截图 URL 的方式,使用相对路径替代绝对路径- 在前端 Vite 配置中添加了对 /static路径的代理设置
This commit is contained in:
@@ -25,6 +25,11 @@ export default defineConfig(({ mode }) => {
|
||||
changeOrigin: true,
|
||||
rewrite: path => path.replace(/^\/api/, '/api'),
|
||||
},
|
||||
'/static': {
|
||||
target: apiBaseUrl,
|
||||
changeOrigin: true,
|
||||
rewrite: path => path.replace(/^\/static/, '/static'),
|
||||
},
|
||||
},
|
||||
},
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user