1
0

2 Коммитууд 32e8cf213c ... e2fc310a7b

Эзэн SHA1 Мессеж Огноо
  林健华 e2fc310a7b 配置build 2 жил өмнө
  林健华 bbd4bf97b3 修改下显示 2 жил өмнө

+ 5 - 1
.env.production

@@ -4,6 +4,10 @@ VITE_USE_MOCK = true
 # public path
 VITE_PUBLIC_PATH = /
 
+# Cross-domain proxy, you can configure multiple
+# Please note that no line breaks
+VITE_PROXY=[["/api","http://localhost:9098"]]
+
 # Delete console
 VITE_DROP_CONSOLE = true
 
@@ -16,7 +20,7 @@ VITE_BUILD_COMPRESS = 'none'
 VITE_BUILD_COMPRESS_DELETE_ORIGIN_FILE = false
 
 # Basic interface address SPA
-VITE_GLOB_API_URL=/basic-api
+VITE_GLOB_API_URL=/api
 
 # File upload address, optional
 # It can be forwarded by nginx or write the actual address directly

+ 4 - 4
src/views/burialPoint/model/data.ts

@@ -28,14 +28,14 @@ export const eventSchema: DescItem[] = [
     field: 'eventType',
     label: '事件类型',
   },
-  {
-    field: 'description',
-    label: '事件描述',
-  },
   {
     field: 'createdTime',
     label: '创建时间',
   },
+  {
+    field: 'description',
+    label: '事件描述',
+  },
 ];
 
 export const eventLogSchema: DescItem[] = [

+ 7 - 7
src/views/sys/error-log/index.vue

@@ -12,9 +12,9 @@
         <a-button @click="fireResourceError" type="primary">
           {{ t('sys.errorLog.fireResourceError') }}
         </a-button>
-        <a-button @click="fireAjaxError" type="primary">
-          {{ t('sys.errorLog.fireAjaxError') }}
-        </a-button>
+<!--        <a-button @click="fireAjaxError" type="primary">-->
+<!--          {{ t('sys.errorLog.fireAjaxError') }}-->
+<!--        </a-button>-->
       </template>
       <template #action="{ record }">
         <TableAction
@@ -36,7 +36,7 @@
   import { useMessage } from '/@/hooks/web/useMessage';
   import { useI18n } from '/@/hooks/web/useI18n';
   import { useErrorLogStore } from '/@/store/modules/errorLog';
-  import { fireErrorApi } from '/@/api/demo/error';
+  // import { fireErrorApi } from '/@/api/demo/error';
   import { getColumns } from './data';
   import { cloneDeep } from 'lodash-es';
 
@@ -86,7 +86,7 @@
     imgList.value.push(`${new Date().getTime()}.png`);
   }
 
-  async function fireAjaxError() {
-    await fireErrorApi();
-  }
+  // async function fireAjaxError() {
+  //   await fireErrorApi();
+  // }
 </script>