修复图片路径问题:删除 /web/BlackFruit-web/ 前缀
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
- 批量删除所有文件中的 /web/BlackFruit-web/ 前缀 - 将相对路径改为绝对路径(以 / 开头) - 修改范围: - /assets/ 资源路径 - /css/ 样式文件路径 - /js/ 脚本文件路径 - /common/ 公共资源路径 - /vender/ 第三方库路径 - 解决部署后所有静态资源 404 的问题 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
This commit is contained in:
@@ -9,7 +9,7 @@ $(function () {
|
||||
$("#docement-list").append(`
|
||||
<div class="document-box">
|
||||
<div class="document-header">
|
||||
<img src="/web/BlackFruit-web/assets/img/document/group-${Math.ceil(
|
||||
<img src="/assets/img/document/group-${Math.ceil(
|
||||
Math.random() * 6
|
||||
)}.png" alt="">
|
||||
<h5>${item.name}</h5>
|
||||
|
||||
@@ -148,8 +148,8 @@
|
||||
return;
|
||||
}
|
||||
|
||||
// 请确保 /web/BlackFruit-web/assets/data/land-110m.json 存在
|
||||
fetch("/web/BlackFruit-web/assets/data/land-110m.json")
|
||||
// 请确保 assets/data/land-110m.json 存在
|
||||
fetch("assets/data/land-110m.json")
|
||||
.then(function (res) {
|
||||
return res.json();
|
||||
})
|
||||
@@ -180,7 +180,7 @@
|
||||
})
|
||||
.catch(function (err) {
|
||||
console.warn(
|
||||
"[Globe] failed to load /web/BlackFruit-web/assets/data/land-110m.json:",
|
||||
"[Globe] failed to load assets/data/land-110m.json:",
|
||||
err
|
||||
);
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user