- {props.showTotal && (
+ {props.showTotal && !props.simple && (
{slots.total?.({ total: props.total }) ?? t('msPagination.total', { total: props.total })}
@@ -412,7 +396,7 @@ export default defineComponent({
/>
)}
{renderPager()}
- {!props.simple && props.showJumper && (
+ {!props.simple && !props.simple && props.showJumper && (
@@ -469,7 +469,7 @@
});
const showBatchAction = computed(() => {
- return selectedCount.value > 0 && attrs.selectable;
+ return selectedCount.value > 0 && !!attrs.selectable;
});
const handleBatchAction = (value: BatchActionParams) => {
@@ -622,6 +622,13 @@
batchLeft.value = getBatchLeft();
});
+ watch(
+ () => props.columns,
+ () => {
+ initColumn();
+ }
+ );
+
defineExpose({
initColumn,
});
diff --git a/frontend/src/components/pure/ms-tags-input/index.vue b/frontend/src/components/pure/ms-tags-input/index.vue
index 4b20ee9e66..b926b1409b 100644
--- a/frontend/src/components/pure/ms-tags-input/index.vue
+++ b/frontend/src/components/pure/ms-tags-input/index.vue
@@ -1,5 +1,5 @@
-
+
{{ t('common.tagInputMaxLength', { number: props.maxLength }) }}
-
+
diff --git a/frontend/src/views/api-test/debug/index.vue b/frontend/src/views/api-test/debug/index.vue
index 49da645308..3cf24b9ecd 100644
--- a/frontend/src/views/api-test/debug/index.vue
+++ b/frontend/src/views/api-test/debug/index.vue
@@ -122,6 +122,7 @@
uploadTempFile,
} from '@/api/modules/api-test/debug';
import { useI18n } from '@/hooks/useI18n';
+ import useLeaveTabUnSaveCheck from '@/hooks/useLeaveTabUnSaveCheck';
import useModal from '@/hooks/useModal';
import { parseCurlScript } from '@/utils';
import { hasAnyPermission } from '@/utils/permission';
@@ -346,34 +347,7 @@
}
}
- // eslint-disable-next-line @typescript-eslint/no-unused-vars
- let isLeaving = false;
- onBeforeRouteLeave((to, from, next) => {
- if (
- !isLeaving &&
- debugTabs.value.some((tab) => tab.unSaved) &&
- hasAnyPermission(['PROJECT_API_DEBUG:READ+ADD', 'PROJECT_API_DEBUG:READ+UPDATE'])
- ) {
- isLeaving = true;
- // 如果有未保存的调试则提示用户
- openModal({
- type: 'warning',
- title: t('common.tip'),
- content: t('apiTestDebug.unsavedLeave'),
- hideCancel: false,
- cancelText: t('common.stay'),
- okText: t('common.leave'),
- onBeforeOk: async () => {
- next();
- },
- onCancel: () => {
- isLeaving = false;
- },
- });
- } else {
- next();
- }
- });
+ useLeaveTabUnSaveCheck(debugTabs.value, ['PROJECT_API_DEBUG:READ+ADD', 'PROJECT_API_DEBUG:READ+UPDATE']);
diff --git a/frontend/src/views/api-test/management/components/management/api/index.vue b/frontend/src/views/api-test/management/components/management/api/index.vue
index 3a1199dddd..4bded5d125 100644
--- a/frontend/src/views/api-test/management/components/management/api/index.vue
+++ b/frontend/src/views/api-test/management/components/management/api/index.vue
@@ -436,6 +436,9 @@
}
:deep(.ms-api-tab-nav) {
@apply h-full;
+ .arco-tabs {
+ @apply border-b-0;
+ }
.arco-tabs-nav {
border-bottom: 1px solid var(--color-text-n8);
}
diff --git a/frontend/src/views/api-test/management/components/management/api/preview/detail.vue b/frontend/src/views/api-test/management/components/management/api/preview/detail.vue
index ca71824576..6e57633914 100644
--- a/frontend/src/views/api-test/management/components/management/api/preview/detail.vue
+++ b/frontend/src/views/api-test/management/components/management/api/preview/detail.vue
@@ -659,7 +659,7 @@
case RequestBodyFormat.FORM_DATA:
return (previewDetail.value.body.formDataBody?.formValues || []).map((e) => ({
...e,
- value: e.paramType === RequestParamsType.FILE ? e.files?.map((file) => file.fileName).join('\n') : e.value,
+ value: e.paramType === RequestParamsType.FILE ? e.files?.map((file) => file.fileName).join('、') : e.value,
}));
case RequestBodyFormat.WWW_FORM:
return previewDetail.value.body.wwwFormBody?.formValues || [];
diff --git a/frontend/src/views/api-test/management/components/management/case/createAndEditCaseDrawer.vue b/frontend/src/views/api-test/management/components/management/case/createAndEditCaseDrawer.vue
index bc225f10ff..9819dc0751 100644
--- a/frontend/src/views/api-test/management/components/management/case/createAndEditCaseDrawer.vue
+++ b/frontend/src/views/api-test/management/components/management/case/createAndEditCaseDrawer.vue
@@ -66,7 +66,7 @@
-
+
diff --git a/frontend/src/views/api-test/management/components/management/index.vue b/frontend/src/views/api-test/management/components/management/index.vue
index 24f7547f3d..2b095e6429 100644
--- a/frontend/src/views/api-test/management/components/management/index.vue
+++ b/frontend/src/views/api-test/management/components/management/index.vue
@@ -56,6 +56,7 @@