Browse Source

补全vite配置

denny 1 year ago
parent
commit
96e1c498af

+ 0 - 5
src/ServerFramework/branches/LSI_WMSLite/back-end/packs/Vinno.WMS.Pack/Vinno.WMS.Pack.csproj

@@ -8,11 +8,6 @@
     <Summary>飞依诺品牌部小程序</Summary>
   </PropertyGroup>
 
-  <ItemGroup>
-    <Compile Update="Core/WmsService.*.cs">
-      <DependentUpon>WmsService.cs</DependentUpon>
-    </Compile>
-  </ItemGroup>
 
   <ItemGroup>
     <PackageReference Include="MicroCloud.AutoMapper" Version="$(MicroCloudVersion)" />

+ 1 - 1
src/ServerFramework/branches/LSI_WMSLite/front-end/internal/vite-config/src/config/application.ts

@@ -69,7 +69,7 @@ function defineApplicationConfig(defineOptions: DefineOptions = {}) {
       },
       define: defineData,
       build: {
-        target: 'es2015',
+        target: ['edge90','chrome90','firefox90','safari15'],
         cssTarget: 'chrome80',
         rollupOptions: {
           output: {

+ 20 - 20
src/ServerFramework/branches/LSI_WMSLite/front-end/vite.config.ts

@@ -24,7 +24,7 @@ export default defineApplicationConfig({
       /** 代理设置列表 */
       proxy: {
         '/api': {
-          target: 'http://127.0.0.1:8000',
+          target: 'http://192.168.6.83:4662',
           changeOrigin: false,
           ws: true,
           // rewrite: (path) => path.replace(new RegExp(`^/api`), ''),
@@ -32,49 +32,49 @@ export default defineApplicationConfig({
           // !only https
           // secure: false,
           // !解决页面跳转模式下参数丢失的问题。
-          bypass: (req: any, _res: any, _options: any) => {
-            req.url = (req as any)?.originalUrl || req.url;
-          },
+          // bypass: (req: any, _res: any, _options: any) => {
+          //   req.url = (req as any)?.originalUrl || req.url;
+          // },
         },
         '/signin-': {
-          target: 'http://127.0.0.1:8000',
+          target: 'http://192.168.6.83:4662',
           changeOrigin: false,
           ws: true,
           rewrite: (path) => path,
           // !解决页面跳转模式下参数丢失的问题。
-          bypass: (req: any, _res: any, _options: any) => {
-            req.url = (req as any)?.originalUrl || req.url;
-          },
+          // bypass: (req: any, _res: any, _options: any) => {
+          //   req.url = (req as any)?.originalUrl || req.url;
+          // },
         },
         '/signalr': {
-          target: 'http://127.0.0.1:8000',
+          target: 'http://192.168.6.83:4662',
           changeOrigin: false,
           ws: true,
           rewrite: (path) => path,
           // !解决页面跳转模式下参数丢失的问题。
-          bypass: (req: any, _res: any, _options: any) => {
-            req.url = (req as any)?.originalUrl || req.url;
-          },
+          // bypass: (req: any, _res: any, _options: any) => {
+          //   req.url = (req as any)?.originalUrl || req.url;
+          // },
         },
         '/files': {
-          target: 'http://127.0.0.1:8000',
+          target: 'http://192.168.6.83:4662',
           changeOrigin: false,
           ws: true,
           rewrite: (path) => path,
           // !解决页面跳转模式下参数丢失的问题。
-          bypass: (req: any, _res: any, _options: any) => {
-            req.url = (req as any)?.originalUrl || req.url;
-          },
+          // bypass: (req: any, _res: any, _options: any) => {
+          //   req.url = (req as any)?.originalUrl || req.url;
+          // },
         },
         '/upload': {
-          target: 'http://127.0.0.1:8000',
+          target: 'http://192.168.6.83:4662',
           changeOrigin: false,
           ws: true,
           rewrite: (path) => path,
           // !解决页面跳转模式下参数丢失的问题。
-          bypass: (req: any, _res: any, _options: any) => {
-            req.url = (req as any)?.originalUrl || req.url;
-          },
+          // bypass: (req: any, _res: any, _options: any) => {
+          //   req.url = (req as any)?.originalUrl || req.url;
+          // },
         },
       },
     },