- 将所有图片路径从绝对路径改为使用 process.env.PUBLIC_URL - 修复 HomePage.tsx 中所有图片引用 - 修复 CoursePage.tsx 中所有图片引用 - 确保图片在 GitHub Pages 上正确加载 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
14 lines
336 B
JavaScript
14 lines
336 B
JavaScript
define(function () {
|
|
|
|
// Invokes `interceptor` with the `obj` and then returns `obj`.
|
|
// The primary purpose of this method is to "tap into" a method chain, in
|
|
// order to perform operations on intermediate results within the chain.
|
|
function tap(obj, interceptor) {
|
|
interceptor(obj);
|
|
return obj;
|
|
}
|
|
|
|
return tap;
|
|
|
|
});
|