diff --git a/core/core-frontend/flushbonading/index.js b/core/core-frontend/flushbonading/index.js index c7cfd2a2bd..49a33aefb3 100644 --- a/core/core-frontend/flushbonading/index.js +++ b/core/core-frontend/flushbonading/index.js @@ -43,7 +43,7 @@ htmlStream.pipe(parserStream).on('finish', () => { } if (url.includes(suffix)) { prefix = new URL(url).origin - const index = url.indexOf(\`/js/div_import_${suffix}\`) + const index = url.indexOf(\`/js/div_import_0.0.0-dataease\`) if (index > 0) { prefix = url.substring(0, index) } @@ -77,6 +77,6 @@ htmlStream.pipe(parserStream).on('finish', () => { }) document.documentElement.insertBefore(head, document.querySelector('body'))` - fs.writeFile(`../dist/js/div_import_${suffix}.js`, templateJs, err => { + fs.writeFile(`../dist/js/div_import_0.0.0-dataease.js`, templateJs, err => { }) }) diff --git a/core/core-frontend/package.json b/core/core-frontend/package.json index f945b5501e..55b7e135b0 100644 --- a/core/core-frontend/package.json +++ b/core/core-frontend/package.json @@ -1,7 +1,7 @@ { "name": "dataease", "private": true, - "version": "0.0.0", + "version": "2.10.20", "scripts": { "dev": "NODE_OPTIONS=--max_old_space_size=4096 vite --mode dev --host 0.0.0.0", "build:flush": "cd ./flushbonading && rimraf ./demo.html && npm i && node ./index.js", diff --git a/core/core-frontend/src/pages/panel/main.ts b/core/core-frontend/src/pages/panel/main.ts index e6ee697e97..4a40ff0ac6 100644 --- a/core/core-frontend/src/pages/panel/main.ts +++ b/core/core-frontend/src/pages/panel/main.ts @@ -37,7 +37,7 @@ const getPrefix = (): string => { } if (url.includes(suffix)) { prefix = new URL(url).origin - const index = url.indexOf(`/js/div_import_${suffix}`) + const index = url.indexOf(`/js/div_import_0.0.0-dataease`) if (index > 0) { prefix = url.substring(0, index) }