diff --git a/core/core-frontend/config/dev.ts b/core/core-frontend/config/dev.ts index 6300308..54e66e3 100644 --- a/core/core-frontend/config/dev.ts +++ b/core/core-frontend/config/dev.ts @@ -2,13 +2,13 @@ export default { server: { proxy: { '/api/f': { - target: 'http://localhost:8100', + target: 'http://192.168.1.16:8100', changeOrigin: true, rewrite: path => path.replace(/^\/api\/f/, '') }, // 使用 proxy 实例 '/api': { - target: 'http://localhost:8105', + target: 'http://192.168.1.16:8100', changeOrigin: true, rewrite: path => path.replace(/^\/api/, '') } diff --git a/core/core-frontend/flushbonading/index.js b/core/core-frontend/flushbonading/index.js index 81259a4..a72b726 100644 --- a/core/core-frontend/flushbonading/index.js +++ b/core/core-frontend/flushbonading/index.js @@ -1,8 +1,8 @@ import { WritableStream } from 'htmlparser2/lib/WritableStream' import fs from 'node:fs' -import { createRequire } from 'module'; -const require = createRequire(import.meta.url); -const pkg = require('../package.json'); +import { createRequire } from 'module' +const require = createRequire(import.meta.url) +const pkg = require('../package.json') const suffix = `${pkg.version}-${pkg.name}` const eleArr = [] @@ -10,7 +10,7 @@ const eleArr = [] function produceTag(obj, name) { eleArr.push({ name, - attributes: obj, + attributes: obj }) } const parserStream = new WritableStream({ @@ -79,6 +79,5 @@ htmlStream.pipe(parserStream).on('finish', () => { }) document.documentElement.insertBefore(head, document.querySelector('head'))` - fs.writeFile(`../dist/js/div_import_${suffix}.js`, templateJs, err => { - }) + fs.writeFile(`../dist/js/div_import_${suffix}.js`, templateJs, err => {}) }) diff --git a/core/core-frontend/index.html b/core/core-frontend/index.html index 3822848..a9eba0c 100644 --- a/core/core-frontend/index.html +++ b/core/core-frontend/index.html @@ -1,16 +1,14 @@ +
+ + + +