Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

gitee pages 部分资源加载不出来【2】 #16

Closed
2333Ge opened this issue Jul 13, 2022 · 3 comments
Closed

gitee pages 部分资源加载不出来【2】 #16

2333Ge opened this issue Jul 13, 2022 · 3 comments

Comments

@2333Ge
Copy link

2333Ge commented Jul 13, 2022

已在1.2.2版本修复;

老板,还是有点问题

首页图片能加载出来,进入文章后头图就加载不出来了
这是我现在部署的地址:

https://i2333g3.gitee.io/personal-learning-blog/post/2022/04/21/shell.html

左侧头像加载不出
从首页进文章页后,刷新地址变成了:https://i2333g3.gitee.io/personal-learning-blog/post/2022/04/21/logo.jpg

应该是 https://i2333g3.gitee.io/personal-learning-blog/logo.jpg

Originally posted by @2333Ge in #15 (comment)

@80maker
Copy link
Owner

80maker commented Jul 21, 2022

1.左侧头像加载不出应该是配置没对,不能用相对路径;
2.已在1.2.3修复;

@2333Ge
Copy link
Author

2333Ge commented Jul 21, 2022

1.左侧头像加载不出应该是配置没对,不能用相对路径; 2.已在1.2.3修复;

配置和demo中一样,写得./logo.jpg,图片在public下

这是项目的配置:config.js

@80maker
Copy link
Owner

80maker commented Jul 23, 2022

你可以用/logo.jpg解决,一定要追究的话就是demo没有用基础路径这种场景,vuepress是没有为相对路径自动转换添加基础路径的能力的,这个也并不合理。

@80maker 80maker closed this as completed Sep 23, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants