-
-
-
-
+
{{
@@ -464,7 +469,6 @@ defineOptions({ name: 'ClAutoProbeDetailTabPatterns' });
.content {
flex: 1;
- padding: 16px;
overflow: auto;
.detail-panel {
diff --git a/frontend/crawlab-ui/src/views/autoprobe/list/useAutoProbeList.tsx b/frontend/crawlab-ui/src/views/autoprobe/list/useAutoProbeList.tsx
index cb558725..a2aa0620 100644
--- a/frontend/crawlab-ui/src/views/autoprobe/list/useAutoProbeList.tsx
+++ b/frontend/crawlab-ui/src/views/autoprobe/list/useAutoProbeList.tsx
@@ -11,7 +11,12 @@ import {
FILTER_OP_CONTAINS,
TABLE_COLUMN_NAME_ACTIONS,
} from '@/constants';
-import { getIconByAction, onListFilterChangeByKey, translate } from '@/utils';
+import {
+ getIconByAction,
+ onListFilterChangeByKey,
+ setupAutoUpdate,
+ translate,
+} from '@/utils';
import {
ClNavLink,
ClAutoProbeTaskStatus,
@@ -30,7 +35,7 @@ const useAutoProbeList = () => {
const { commit } = store;
const { actionFunctions } = useList
(ns, store);
- const { deleteByIdConfirm } = actionFunctions;
+ const { getList, deleteByIdConfirm } = actionFunctions;
// nav actions
const navActions = computed(() => [
@@ -185,6 +190,8 @@ const useAutoProbeList = () => {
] as TableColumns
);
+ setupAutoUpdate(getList);
+
return {
...useList(ns, store),
navActions,
diff --git a/frontend/crawlab-ui/src/views/system/detail/tabs/SystemDetailTabModels.vue b/frontend/crawlab-ui/src/views/system/detail/tabs/SystemDetailTabModels.vue
index 6cb9f840..a4b507cd 100644
--- a/frontend/crawlab-ui/src/views/system/detail/tabs/SystemDetailTabModels.vue
+++ b/frontend/crawlab-ui/src/views/system/detail/tabs/SystemDetailTabModels.vue
@@ -3,7 +3,12 @@ import { ref, computed, onBeforeMount } from 'vue';
import { ElSpace, ElMessage, ElMessageBox, ElCheckbox } from 'element-plus';
import { ClTag, ClNavLink, ClIcon } from '@/components';
import useRequest from '@/services/request';
-import { getDefaultPagination, plainClone, translate } from '@/utils';
+import {
+ EMPTY_OBJECT_ID,
+ getDefaultPagination,
+ plainClone,
+ translate,
+} from '@/utils';
import {
ACTION_DELETE,
ACTION_EDIT,
@@ -37,7 +42,7 @@ const updateDefaultProviderId = async (id: string) => {
default_provider_id: id,
},
};
- if (!settingAI.value) {
+ if (!settingAI.value?._id || settingAI.value._id === EMPTY_OBJECT_ID) {
await post('/settings/ai', { data });
} else {
await put('/settings/ai', { data });