We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
任何模式
由于在内网环境访问不到cdn,于是我把cdn资源搬到了我的nuxt服务上,因此设置的cdn地址为相对地址。 此时引入代码高亮主题的js在判断link元素的href前后一致时有误。
const vditorHljsStyle = document.getElementById("vditorHljsStyle") as HTMLLinkElement; const href = `${cdn}/dist/js/highlight.js/styles/${style}.css`; // .href将获取到dom的完整地址,.getAttribute('href')才能够获取到相对地址,与href变量计算一致。 if (vditorHljsStyle && vditorHljsStyle.href !== href) { vditorHljsStyle.remove(); }
支持相对地址/相对协议
The text was updated successfully, but these errors were encountered:
fix Vanessa219#1606
6b5cb02
fix #1606 (#1607)
a9a4633
#1607
Sorry, something went wrong.
No branches or pull requests
编辑模式
任何模式
描述问题
由于在内网环境访问不到cdn,于是我把cdn资源搬到了我的nuxt服务上,因此设置的cdn地址为相对地址。
此时引入代码高亮主题的js在判断link元素的href前后一致时有误。
期待的结果
支持相对地址/相对协议
截屏或录像
版本信息
其他信息
The text was updated successfully, but these errors were encountered: