From 3bcffec1f698f20b8f1e84aa9fbf30ee0e8ca9e5 Mon Sep 17 00:00:00 2001 From: xc Date: Tue, 26 Aug 2025 10:10:19 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E6=89=93=E5=8C=85=E9=94=99?= =?UTF-8?q?=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- vue/afvue/package.json | 3 +-- vue/afvue/vite.config.js | 10 +++++----- 2 files changed, 6 insertions(+), 7 deletions(-) diff --git a/vue/afvue/package.json b/vue/afvue/package.json index f6e077b..9eae4f3 100644 --- a/vue/afvue/package.json +++ b/vue/afvue/package.json @@ -6,8 +6,7 @@ "scripts": { "dev": "vite", "build": "vite build", - "preview": "vite preview --port 4173", - "proto": "pbjs -t json-module -w commonjs -o src/proto/scinfo.js src/proto/scinfo.proto" + "preview": "vite preview --port 4173" }, "dependencies": { "axios": "^1.11.0", diff --git a/vue/afvue/vite.config.js b/vue/afvue/vite.config.js index d494507..9aab03d 100644 --- a/vue/afvue/vite.config.js +++ b/vue/afvue/vite.config.js @@ -1,17 +1,17 @@ import { fileURLToPath, URL } from 'node:url' import { defineConfig } from 'vite' -import legacy from '@vitejs/plugin-legacy' +// import legacy from '@vitejs/plugin-legacy' import vue2 from '@vitejs/plugin-vue2' // https://vitejs.dev/config/ export default defineConfig({ plugins: [ vue2(), - legacy({ - targets: ['ie >= 11'], - additionalLegacyPolyfills: ['regenerator-runtime/runtime'] - }) + // legacy({ + // targets: ['ie >= 11'], + // additionalLegacyPolyfills: ['regenerator-runtime/runtime'] + // }) ], resolve: { alias: {