mirror of
https://github.com/dataease/dataease.git
synced 2026-05-14 04:12:11 +08:00
fix(嵌入式): 嵌入式报错
This commit is contained in:
@@ -41,7 +41,7 @@ htmlStream.pipe(parserStream).on('finish', () => {
|
|||||||
} else if (ele.nodeName === 'SCRIPT') {
|
} else if (ele.nodeName === 'SCRIPT') {
|
||||||
url = ele.src
|
url = ele.src
|
||||||
}
|
}
|
||||||
if (url.includes(suffix)) {
|
if (url.includes('0.0.0-dataease')) {
|
||||||
prefix = new URL(url).origin
|
prefix = new URL(url).origin
|
||||||
const index = url.indexOf(\`/js/div_import_0.0.0-dataease\`)
|
const index = url.indexOf(\`/js/div_import_0.0.0-dataease\`)
|
||||||
if (index > 0) {
|
if (index > 0) {
|
||||||
|
|||||||
@@ -32,7 +32,7 @@ const getPrefix = (): string => {
|
|||||||
} else if (ele instanceof HTMLScriptElement) {
|
} else if (ele instanceof HTMLScriptElement) {
|
||||||
url = ele.src
|
url = ele.src
|
||||||
}
|
}
|
||||||
if (url.includes(suffix)) {
|
if (url.includes('0.0.0-dataease')) {
|
||||||
prefix = new URL(url).origin
|
prefix = new URL(url).origin
|
||||||
const index = url.indexOf(`/js/div_import_0.0.0-dataease`)
|
const index = url.indexOf(`/js/div_import_0.0.0-dataease`)
|
||||||
if (index > 0) {
|
if (index > 0) {
|
||||||
|
|||||||
Reference in New Issue
Block a user