部分组件bug修复

This commit is contained in:
tangly1024
2024-11-23 20:17:52 +08:00
parent 0d832e48ba
commit 401d7149a1
6 changed files with 49 additions and 37 deletions

View File

@@ -7,7 +7,7 @@ import { isBrowser } from '@/lib/utils'
* 传入参数将转为 <script>标签。
* @returns
*/
const ExternalScript = (props) => {
const ExternalScript = props => {
const { src } = props
if (!isBrowser || !src) {
return null
@@ -22,7 +22,7 @@ const ExternalScript = (props) => {
script.setAttribute(key, value)
})
document.head.appendChild(script)
console.log('加载外部脚本', props, script)
// console.log('加载外部脚本', props, script)
return null
}