Browse Source

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

tangning 2 năm trước cách đây
mục cha
commit
e8a17278e1

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

@@ -2,11 +2,11 @@ import { defHttp } from '/@/utils/http/axios';
 
 
 enum Api {
 enum Api {
   // The address does not exist
   // The address does not exist
-  Error = '/error',
+  Error = '/manage/service/manage/operLog/pageOperLog',
 }
 }
 
 
 /**
 /**
  * @description: Trigger ajax error
  * @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>
     </template>
     <DetailModal :info="rowInfo" @register="registerModal" />
     <DetailModal :info="rowInfo" @register="registerModal" />
     <BasicTable @register="register" class="error-handle-table">
     <BasicTable @register="register" class="error-handle-table">
-      <template #toolbar>
+      <!-- <template #toolbar>
         <a-button @click="fireVueError" type="primary">
         <a-button @click="fireVueError" type="primary">
           {{ t('sys.errorLog.fireVueError') }}
           {{ t('sys.errorLog.fireVueError') }}
         </a-button>
         </a-button>
@@ -15,7 +15,7 @@
         <a-button @click="fireAjaxError" type="primary">
         <a-button @click="fireAjaxError" type="primary">
           {{ t('sys.errorLog.fireAjaxError') }}
           {{ t('sys.errorLog.fireAjaxError') }}
         </a-button>
         </a-button>
-      </template>
+      </template> -->
       <template #action="{ record }">
       <template #action="{ record }">
         <TableAction
         <TableAction
           :actions="[
           :actions="[
@@ -46,6 +46,7 @@
   const { t } = useI18n();
   const { t } = useI18n();
   const errorLogStore = useErrorLogStore();
   const errorLogStore = useErrorLogStore();
   const [register, { setTableData }] = useTable({
   const [register, { setTableData }] = useTable({
+    api:fireErrorApi,
     title: t('sys.errorLog.tableTitle'),
     title: t('sys.errorLog.tableTitle'),
     columns: getColumns(),
     columns: getColumns(),
     actionColumn: {
     actionColumn: {