diff --git a/packages/core/basic/src/utils/util.request.ts b/packages/core/basic/src/utils/util.request.ts
index f1da0a5f..09582ec1 100644
--- a/packages/core/basic/src/utils/util.request.ts
+++ b/packages/core/basic/src/utils/util.request.ts
@@ -91,6 +91,13 @@ export function createAxiosService({ logger }: { logger: Logger }) {
// 请求拦截
service.interceptors.request.use(
(config: any) => {
+ if (config.logParams == null) {
+ config.logParams = false;
+ }
+ if (config.logRes == null) {
+ config.logRes = false;
+ }
+
logger.info(`http request:${config.url},method:${config.method}`);
if (config.logParams !== false && config.params) {
logger.info(`params:${JSON.stringify(config.params)}`);
diff --git a/packages/ui/certd-client/src/layout/layout-basic.vue b/packages/ui/certd-client/src/layout/layout-basic.vue
index d223fa02..0a549702 100644
--- a/packages/ui/certd-client/src/layout/layout-basic.vue
+++ b/packages/ui/certd-client/src/layout/layout-basic.vue
@@ -84,7 +84,6 @@ provide("fn:ai.open", openChat);
-
diff --git a/packages/ui/certd-client/src/vben/layout-ui/vben-layout.vue b/packages/ui/certd-client/src/vben/layout-ui/vben-layout.vue
index 726cc744..d46d29b2 100644
--- a/packages/ui/certd-client/src/vben/layout-ui/vben-layout.vue
+++ b/packages/ui/certd-client/src/vben/layout-ui/vben-layout.vue
@@ -488,7 +488,7 @@ const idMainContent = ELEMENT_ID_MAIN_CONTENT;
-
+
diff --git a/packages/ui/certd-client/src/views/certd/pipeline/pipeline/component/task-view/index.vue b/packages/ui/certd-client/src/views/certd/pipeline/pipeline/component/task-view/index.vue
index 64352e03..b4e84ec0 100644
--- a/packages/ui/certd-client/src/views/certd/pipeline/pipeline/component/task-view/index.vue
+++ b/packages/ui/certd-client/src/views/certd/pipeline/pipeline/component/task-view/index.vue
@@ -23,7 +23,7 @@
- AI分析
+ AI分析
关闭
确定
@@ -35,7 +35,7 @@ import { computed, inject, nextTick, Ref, ref, watch } from "vue";
import { RunHistory } from "../../type";
import PiStatusShow from "/@/views/certd/pipeline/pipeline/component/status-show.vue";
import { usePreferences } from "/@/vben/preferences";
-
+import { useSettingStore } from "/@/store/settings/index";
export default {
name: "PiTaskView",
components: { PiStatusShow },
@@ -70,7 +70,7 @@ export default {
for (let log of logs) {
logText += log + "\n";
}
- const maxLength = 5000;
+ const maxLength = 2500;
if (logText.length > maxLength) {
logText = logText.substring(logText.length - maxLength);
}
@@ -172,6 +172,7 @@ export default {
taskModal.value.open = false;
}
+ const settingsStore = useSettingStore();
return {
detail,
taskModal,
@@ -180,6 +181,7 @@ export default {
taskViewClose,
tabPosition,
triggerRun,
+ settingsStore,
};
},
};
diff --git a/packages/ui/certd-client/src/views/sys/plugin/crud.tsx b/packages/ui/certd-client/src/views/sys/plugin/crud.tsx
index 1565ab16..938a9dd4 100644
--- a/packages/ui/certd-client/src/views/sys/plugin/crud.tsx
+++ b/packages/ui/certd-client/src/views/sys/plugin/crud.tsx
@@ -204,12 +204,14 @@ export default function ({ crudExpose, context }: CreateCrudOptionsProps): Creat
},
form: {
onSuccess(opts: any) {
- router.push({
- name: "SysPluginEdit",
- query: {
- id: opts.res.id,
- },
- });
+ if (opts.res?.id) {
+ router.push({
+ name: "SysPluginEdit",
+ query: {
+ id: opts.res.id,
+ },
+ });
+ }
},
},
columns: {
diff --git a/packages/ui/certd-server/src/controller/sys/plugin/plugin-controller.ts b/packages/ui/certd-server/src/controller/sys/plugin/plugin-controller.ts
index 6ff73443..14310dd3 100644
--- a/packages/ui/certd-server/src/controller/sys/plugin/plugin-controller.ts
+++ b/packages/ui/certd-server/src/controller/sys/plugin/plugin-controller.ts
@@ -44,9 +44,6 @@ export class PluginController extends CrudController {
async update(@Body(ALL) bean: any) {
const res = await super.update(bean);
- // 更新插件配置
- const info = await this.service.info(bean.id)
- await this.service.registerPlugin(info)
return res
}
diff --git a/packages/ui/certd-server/src/modules/plugin/service/plugin-service.ts b/packages/ui/certd-server/src/modules/plugin/service/plugin-service.ts
index c4908734..30e5eace 100644
--- a/packages/ui/certd-server/src/modules/plugin/service/plugin-service.ts
+++ b/packages/ui/certd-server/src/modules/plugin/service/plugin-service.ts
@@ -350,12 +350,15 @@ export class PluginService extends BaseService {
async registerPlugin(plugin: PluginEntity) {
const metadata = plugin.metadata ? yaml.load(plugin.metadata) : {};
+ const extra = plugin.extra ? yaml.load(plugin.extra) : {};
const item = {
...plugin,
- ...metadata
+ ...metadata,
+ ...extra
};
delete item.metadata;
delete item.content;
+ delete item.extra;
if (item.author) {
item.name = item.author + "/" + item.name;
}