fix: 更改版本号

This commit is contained in:
dataeaseShu
2026-03-30 14:54:13 +08:00
parent 9c7ff3e812
commit 3978b6554f
3 changed files with 4 additions and 4 deletions

View File

@@ -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 => {
})
})

View File

@@ -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",

View File

@@ -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)
}