diff --git a/mayfly_go_web/src/common/useRequest.ts b/mayfly_go_web/src/common/useRequest.ts index de54754f..4844934e 100644 --- a/mayfly_go_web/src/common/useRequest.ts +++ b/mayfly_go_web/src/common/useRequest.ts @@ -122,11 +122,12 @@ export function useApiFetch(api: Api, params: any = null, reqOptions: Request return; } - // 如果提示没有权限,则移除token,使其重新登录 + // 如果提示没有权限,则跳转至无权限页面 if (result.code === ResultEnum.NO_PERMISSION) { router.push({ path: '/401', }); + return; } // 如果返回的code不为成功,则会返回对应的错误msg,则直接统一通知即可。忽略登录超时或没有权限的提示(直接跳转至401页面) diff --git a/mayfly_go_web/src/views/ops/db/component/table/DbTableData.vue b/mayfly_go_web/src/views/ops/db/component/table/DbTableData.vue index fd212c48..b4bc969f 100644 --- a/mayfly_go_web/src/views/ops/db/component/table/DbTableData.vue +++ b/mayfly_go_web/src/views/ops/db/component/table/DbTableData.vue @@ -7,6 +7,7 @@ :header-height="30" :row-height="30" :row-class="rowClass" + :row-key="null" :columns="state.columns" :data="datas" :width="width" @@ -28,7 +29,7 @@ >
- {{ column.title }} + {{ column.title }}
@@ -42,9 +43,9 @@
- + {{ column.title }} - +
- + {{ column.title }} - +
@@ -69,9 +70,9 @@
- + {{ rowIndex + 1 }} - +
@@ -87,13 +88,11 @@
- - NULL - + NULL - + {{ rowData[column.dataKey!] }} - +
diff --git a/mayfly_go_web/src/views/ops/db/component/table/DbTableOp.vue b/mayfly_go_web/src/views/ops/db/component/table/DbTableOp.vue index a85d1038..e6236daa 100644 --- a/mayfly_go_web/src/views/ops/db/component/table/DbTableOp.vue +++ b/mayfly_go_web/src/views/ops/db/component/table/DbTableOp.vue @@ -1,6 +1,6 @@