mirror of
https://github.com/1Panel-dev/MaxKB.git
synced 2025-12-26 01:33:05 +00:00
feat: 嵌入脚本添加异步加载
This commit is contained in:
parent
e39c813c15
commit
08071b6559
|
|
@ -70,11 +70,13 @@ allow="microphone">
|
|||
`
|
||||
|
||||
source2.value = `
|
||||
<script src="${
|
||||
window.location.origin
|
||||
}/api/application/embed?protocol=${window.location.protocol.replace(':', '')}&host=${
|
||||
window.location.host
|
||||
}&token=${val}">
|
||||
<script
|
||||
async
|
||||
defer
|
||||
src="${window.location.origin}/api/application/embed?protocol=${window.location.protocol.replace(
|
||||
':',
|
||||
''
|
||||
)}&host=${window.location.host}&token=${val}">
|
||||
<\/script>
|
||||
`
|
||||
dialogVisible.value = true
|
||||
|
|
|
|||
Loading…
Reference in New Issue