Browse Source

fix(bugs): /#/error-log/list

tangning 2 years ago
parent
commit
e8a17278e1
2 changed files with 5 additions and 4 deletions
  1. 2 2
      src/api/demo/error.ts
  2. 3 2
      src/views/sys/error-log/index.vue

+ 2 - 2
src/api/demo/error.ts

@@ -2,11 +2,11 @@ import { defHttp } from '/@/utils/http/axios';
 
 enum Api {
   // The address does not exist
-  Error = '/error',
+  Error = '/manage/service/manage/operLog/pageOperLog',
 }
 
 /**
  * @description: Trigger ajax error
  */
 
-export const fireErrorApi = () => defHttp.get({ url: Api.Error });
+export const fireErrorApi = () => defHttp.post({ url: Api.Error });

+ 3 - 2
src/views/sys/error-log/index.vue

@@ -5,7 +5,7 @@
     </template>
     <DetailModal :info="rowInfo" @register="registerModal" />
     <BasicTable @register="register" class="error-handle-table">
-      <template #toolbar>
+      <!-- <template #toolbar>
         <a-button @click="fireVueError" type="primary">
           {{ t('sys.errorLog.fireVueError') }}
         </a-button>
@@ -15,7 +15,7 @@
         <a-button @click="fireAjaxError" type="primary">
           {{ t('sys.errorLog.fireAjaxError') }}
         </a-button>
-      </template>
+      </template> -->
       <template #action="{ record }">
         <TableAction
           :actions="[
@@ -46,6 +46,7 @@
   const { t } = useI18n();
   const errorLogStore = useErrorLogStore();
   const [register, { setTableData }] = useTable({
+    api:fireErrorApi,
     title: t('sys.errorLog.tableTitle'),
     columns: getColumns(),
     actionColumn: {