From 24d9e4fecbd2b006ae49f32f1608e9a9f9d1eca6 Mon Sep 17 00:00:00 2001 From: suixy <2277317060@qq.com> Date: Mon, 9 Feb 2026 18:05:21 +0800 Subject: [PATCH] =?UTF-8?q?=E7=9C=8B=E6=9D=BF=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- build/index.js | 35 -------------------------------- src/views/board/board1/index.vue | 24 +++++++++++----------- src/views/board/board4/index.vue | 24 +++++++++++----------- src/views/board/board5/index.vue | 34 +++++++++++++++---------------- src/views/model/model.vue | 26 ++++++++++++------------ 5 files changed, 54 insertions(+), 89 deletions(-) delete mode 100644 build/index.js diff --git a/build/index.js b/build/index.js deleted file mode 100644 index 0c57de2..0000000 --- a/build/index.js +++ /dev/null @@ -1,35 +0,0 @@ -const { run } = require('runjs') -const chalk = require('chalk') -const config = require('../vue.config.js') -const rawArgv = process.argv.slice(2) -const args = rawArgv.join(' ') - -if (process.env.npm_config_preview || rawArgv.includes('--preview')) { - const report = rawArgv.includes('--report') - - run(`vue-cli-service build ${args}`) - - const port = 9526 - const publicPath = config.publicPath - - var connect = require('connect') - var serveStatic = require('serve-static') - const app = connect() - - app.use( - publicPath, - serveStatic('./dist', { - index: ['index.html', '/'] - }) - ) - - app.listen(port, function () { - console.log(chalk.green(`> Preview at http://localhost:${port}${publicPath}`)) - if (report) { - console.log(chalk.green(`> Report at http://localhost:${port}${publicPath}report.html`)) - } - - }) -} else { - run(`vue-cli-service build ${args}`) -} diff --git a/src/views/board/board1/index.vue b/src/views/board/board1/index.vue index a651e24..3d27d5a 100644 --- a/src/views/board/board1/index.vue +++ b/src/views/board/board1/index.vue @@ -39,7 +39,7 @@