Skip to content

fix: tip image 404 #1966

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

Merged
merged 1 commit into from
Jan 2, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -401,7 +401,7 @@ const startRecording = async () => {
2、若无 https 配置则需要修改浏览器安全配置,Chrome 设置如下:<br/>
(1) 地址栏输入chrome://flags/#unsafely-treat-insecure-origin-as-secure;<br/>
(2) 将 http 站点配置在文本框中,例如: http://127.0.0.1:8080。</p>
<img src="${new URL(`../../assets/tipIMG.jpg`, import.meta.url).href}" style="width: 100%;" />`,
<img src="${new URL(`@/assets/tipIMG.jpg`, import.meta.url).href}" style="width: 100%;" />`,
{
confirmButtonText: '我知道了',
dangerouslyUseHTMLString: true,
Expand All @@ -418,7 +418,7 @@ const startRecording = async () => {
2、若无 https 配置则需要修改浏览器安全配置,Chrome 设置如下:<br/>
(1) 地址栏输入chrome://flags/#unsafely-treat-insecure-origin-as-secure;<br/>
(2) 将 http 站点配置在文本框中,例如: http://127.0.0.1:8080。</p>
<img src="${new URL(`../../assets/tipIMG.jpg`, import.meta.url).href}" style="width: 100%;" />`,
<img src="${new URL(`@/assets/tipIMG.jpg`, import.meta.url).href}" style="width: 100%;" />`,
{
confirmButtonText: '我知道了',
dangerouslyUseHTMLString: true,
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The provided code appears to have a couple of small issues:

  1. In the error message string, there is an extra space after "Tip":
    Correct format:

    `2、若无 https 配置则需要修改浏览器安全配置,Chrome 设置如下:<br/>
        (1) 地址栏输入 chrome://flags/#unsafely-treat-insecure-origin-as-secure;<br/>
        (2) 将 http 站点配置在文本框中,例如: http://127.0.0.1:8080。`
    
  2. The image source paths in both instances (../../assets/tipIMG.jpg and @/assets/tipIMG.jpg) look correct.

Otherwise, everything looks good with no other obvious errors or potential issues.

Expand Down
Loading