This commit is contained in:
2026-10-15 15:45:32 +08:00
parent e556d75081
commit 2a38288e20
8 changed files with 358 additions and 53 deletions
+1 -1
View File
@@ -5,7 +5,7 @@ import { runInNewContext } from 'node:vm'
const source = readFileSync(new URL('../src/pages/return-counting/return-counting.vue', import.meta.url), 'utf8')
const script = source.match(/<script>([\s\S]*?)<\/script>/)[1].replace(/^import .+$/gm, '').replace('export default', 'page =')
const scope = { PortalHeader: {}, ScanTargetInput: {} }
const scope = { PortalHeader: {}, ScanTargetInput: {}, CartonCountFields: {} }
runInNewContext(script, scope)
function state(a = '2', b = '2', c = '2') {