diff --git a/mayfly_go_web/src/common/useRequest.ts b/mayfly_go_web/src/common/useRequest.ts index 7a6b3392..de54754f 100644 --- a/mayfly_go_web/src/common/useRequest.ts +++ b/mayfly_go_web/src/common/useRequest.ts @@ -95,6 +95,16 @@ export function useApiFetch(api: Api, params: any = null, reqOptions: Request return rejectPromise; } + const respStatus = uaf.response.value?.status; + if (respStatus == 404) { + ElMessage.error('请求接口不存在'); + return rejectPromise; + } + if (respStatus == 500) { + ElMessage.error('服务器响应异常'); + return rejectPromise; + } + console.error(e); ElMessage.error('网络请求错误'); return rejectPromise; diff --git a/mayfly_go_web/src/components/contextmenu/index.vue b/mayfly_go_web/src/components/contextmenu/index.vue index 809d4c3a..3e1b5455 100644 --- a/mayfly_go_web/src/components/contextmenu/index.vue +++ b/mayfly_go_web/src/components/contextmenu/index.vue @@ -184,6 +184,10 @@ defineExpose({ z-index: 2190; position: fixed; + .el-dropdown-menu__item { + padding: 5px 10px; + } + .el-dropdown-menu__item { font-size: 12px !important; white-space: nowrap; diff --git a/mayfly_go_web/src/views/ops/db/SqlExec.vue b/mayfly_go_web/src/views/ops/db/SqlExec.vue index 39a3236c..04bdf85d 100644 --- a/mayfly_go_web/src/views/ops/db/SqlExec.vue +++ b/mayfly_go_web/src/views/ops/db/SqlExec.vue @@ -5,7 +5,14 @@