From 6a7257f9d8f659c508cf826726126c0fa4363eef Mon Sep 17 00:00:00 2001
From: YangYuGang <1378265336@qq.com>
Date: 星期一, 14 四月 2025 17:04:39 +0800
Subject: [PATCH] 盘点单没有数据时一直加载中

---
 vite.config.ts |   21 +++++++++++++--------
 1 files changed, 13 insertions(+), 8 deletions(-)

diff --git a/vite.config.ts b/vite.config.ts
index bd04e0d..a20e807 100644
--- a/vite.config.ts
+++ b/vite.config.ts
@@ -1,5 +1,12 @@
+/*
+ * @Description: file content
+ * @Author: your name
+ * @version: 
+ * @Date: 2024-06-17 14:51:26
+ * @LastEditors: Ben Lin
+ * @LastEditTime: 2024-06-18 18:06:29
+ */
 import { defineApplicationConfig } from '@vben/vite-config';
-import topLevelAwait from 'vite-plugin-top-level-await';
 
 export default defineApplicationConfig({
   overrides: {
@@ -22,7 +29,7 @@
       port: 3100,
       proxy: {
         '/basic-api': {
-          target: 'http://localhost:9528',
+          target: 'http://localhost:3000',
           changeOrigin: true,
           ws: true,
           rewrite: (path) => path.replace(new RegExp(`^/basic-api`), ''),
@@ -36,13 +43,11 @@
           rewrite: (path) => path.replace(new RegExp(`^/upload`), ''),
         },
       },
+      open: true, // 椤圭洰鍚姩鍚庯紝鑷姩鎵撳紑
+      warmup: {
+        clientFiles: ['./index.html', './src/{views,components}/*'],
+      },
     },
-    plugins: [
-      topLevelAwait({
-        promiseExportName: '__tla',
-        promiseImportName: (i) => `__tla_${i}`,
-      }),
-    ],
     build: {
       target: 'esnext',
       rollupOptions: {

--
Gitblit v1.9.3