From e1b028d486713eaf55aaf35fbf334aa568059c0d Mon Sep 17 00:00:00 2001
From: wwf <1971391498@qq.com>
Date: 星期二, 14 四月 2026 15:46:54 +0800
Subject: [PATCH] 项目复制

---
 vite.config.js |   39 +++++++++++++++++++++++++++++++++++++++
 1 files changed, 39 insertions(+), 0 deletions(-)

diff --git a/vite.config.js b/vite.config.js
new file mode 100644
index 0000000..2f4c118
--- /dev/null
+++ b/vite.config.js
@@ -0,0 +1,39 @@
+import { fileURLToPath, URL } from 'node:url'
+
+import { defineConfig } from 'vite'
+import vue from '@vitejs/plugin-vue'
+import vueDevTools from 'vite-plugin-vue-devtools'
+const timestamp = new Date().getTime()
+// https://vite.dev/config/
+export default defineConfig({
+  base: '/examination/verify',
+  plugins: [vue(), vueDevTools()],
+  define: {
+    // 娉ㄥ叆鏋勫缓鏃堕棿鎴冲埌浠g爜涓�
+    '__BUILD_TIME__': JSON.stringify(timestamp)
+  },
+  rollupOptions: {
+    output: {
+      // 鍦ㄦ枃浠跺悕涓姞鍏ユ椂闂存埑锛岀‘淇濇瘡娆℃瀯寤洪兘涓嶅悓
+      entryFileNames: `assets/js/[name]-[hash]-${timestamp}.js`,
+      chunkFileNames: `assets/js/[name]-[hash]-${timestamp}.js`,
+      assetFileNames: `assets/[ext]/[name]-[hash]-${timestamp}.[ext]`
+    }
+  },
+  resolve: {
+    alias: {
+      '@': fileURLToPath(new URL('./src', import.meta.url)),
+    },
+  },
+  server: {
+    allowedHosts: ['dev.qxueyou.com'],
+    host: '0.0.0.0',
+    proxy: {
+      '/app-api': {
+        target: 'http://101.43.143.75:48180', // dev
+        changeOrigin: true,
+      },
+    },
+    port: 5174
+  },
+})

--
Gitblit v1.8.0