diff --git a/frontend/package.json b/frontend/package.json index f6659094..d05fedcd 100644 --- a/frontend/package.json +++ b/frontend/package.json @@ -11,8 +11,8 @@ }, "dependencies": { "@element-plus/icons-vue": "^2.3.1", - "@logicflow/core": "^2.0.15", - "@logicflow/extension": "^2.0.20", + "@logicflow/core": "^2.0.16", + "@logicflow/extension": "^2.0.21", "@vueuse/core": "^13.3.0", "@xterm/addon-fit": "^0.10.0", "@xterm/addon-search": "^0.15.0", @@ -24,7 +24,7 @@ "crypto-js": "^4.2.0", "dayjs": "^1.11.13", "echarts": "^5.6.0", - "element-plus": "^2.10.1", + "element-plus": "^2.10.2", "js-base64": "^3.7.7", "jsencrypt": "^3.3.2", "mitt": "^3.0.1", @@ -45,7 +45,7 @@ "vuedraggable": "^4.1.0" }, "devDependencies": { - "@tailwindcss/vite": "^4.1.6", + "@tailwindcss/vite": "^4.1.9", "@types/crypto-js": "^4.2.2", "@types/node": "^18.14.0", "@types/nprogress": "^0.2.0", @@ -58,13 +58,13 @@ "code-inspector-plugin": "^0.20.9", "dotenv": "^16.3.1", "eslint": "^9.27.0", - "eslint-plugin-vue": "^10.1.0", + "eslint-plugin-vue": "^10.2.0", "postcss": "^8.5.4", "prettier": "^3.5.3", - "sass": "^1.89.1", - "tailwindcss": "^4.1.8", + "sass": "^1.89.2", + "tailwindcss": "^4.1.9", "typescript": "^5.8.2", - "vite": "^6.3.5", + "vite": "npm:rolldown-vite@latest", "vite-plugin-progress": "0.0.7", "vue-eslint-parser": "^10.1.3" }, diff --git a/frontend/src/common/config.ts b/frontend/src/common/config.ts index 80155add..7af327e3 100644 --- a/frontend/src/common/config.ts +++ b/frontend/src/common/config.ts @@ -15,7 +15,7 @@ const config = { baseWsUrl: `${(window as any).globalConfig.BaseWsUrl || `${location.protocol == 'https:' ? 'wss:' : 'ws:'}//${getBaseApiUrl()}`}/api`, // 系统版本 - version: 'v1.10.0', + version: 'v1.10.1', }; export default config; diff --git a/frontend/src/common/utils/export.ts b/frontend/src/common/utils/export.ts index c1a87d27..9a4332fc 100644 --- a/frontend/src/common/utils/export.ts +++ b/frontend/src/common/utils/export.ts @@ -42,4 +42,5 @@ export function exportFile(filename: string, content: string) { link.setAttribute('download', `${filename}`); document.body.appendChild(link); link.click(); + document.body.removeChild(link); // 下载完成后移除元素 } diff --git a/frontend/src/components/enumtag/EnumTag.vue b/frontend/src/components/enumtag/EnumTag.vue index 677d0385..5b65e06a 100644 --- a/frontend/src/components/enumtag/EnumTag.vue +++ b/frontend/src/components/enumtag/EnumTag.vue @@ -12,8 +12,9 @@ const props = defineProps({ required: true, }, value: { - type: [Object, String, Number], + type: [Object, String, Number, null], required: true, + default: () => null, }, }); @@ -40,7 +41,7 @@ onMounted(() => { }); const convert = (value: any) => { - const enumValue = EnumValue.getEnumByValue(props.enums, value) as any; + const enumValue = EnumValue.getEnumByValue(props.enums, value); if (!enumValue) { state.enumLabel = '-'; state.type = 'danger'; @@ -50,8 +51,8 @@ const convert = (value: any) => { state.enumLabel = enumValue?.label || ''; if (enumValue.tag) { - state.color = enumValue.tag.color; - state.type = enumValue.tag.type; + state.color = enumValue.tag.color || ''; + state.type = enumValue.tag.type || defaultType; } else { state.type = defaultType; } diff --git a/frontend/src/components/pagetable/PageTable.vue b/frontend/src/components/pagetable/PageTable.vue index 3c50ffa2..d4cc660b 100644 --- a/frontend/src/components/pagetable/PageTable.vue +++ b/frontend/src/components/pagetable/PageTable.vue @@ -68,7 +68,7 @@ trigger="click" >
- +