diff --git a/frontend/package.json b/frontend/package.json index c80b3196..53322574 100644 --- a/frontend/package.json +++ b/frontend/package.json @@ -11,7 +11,9 @@ }, "dependencies": { "@element-plus/icons-vue": "^2.3.1", - "@vueuse/core": "^13.1.0", + "@logicflow/core": "^2.0.13", + "@logicflow/extension": "^2.0.18", + "@vueuse/core": "^13.2.0", "@xterm/addon-fit": "^0.10.0", "@xterm/addon-search": "^0.15.0", "@xterm/addon-web-links": "^0.11.0", @@ -22,37 +24,37 @@ "crypto-js": "^4.2.0", "dayjs": "^1.11.13", "echarts": "^5.6.0", - "element-plus": "^2.9.8", + "element-plus": "^2.9.10", "js-base64": "^3.7.7", "jsencrypt": "^3.3.2", "mitt": "^3.0.1", "monaco-editor": "^0.52.2", - "monaco-sql-languages": "^0.12.2", - "monaco-themes": "^0.4.4", + "monaco-sql-languages": "^0.14.0", + "monaco-themes": "^0.4.5", "nprogress": "^0.2.0", "pinia": "^3.0.2", "qrcode.vue": "^3.6.0", "screenfull": "^6.0.2", "sortablejs": "^1.15.6", "splitpanes": "^4.0.3", - "sql-formatter": "^15.4.10", + "sql-formatter": "^15.6.1", "trzsz": "^1.1.5", "uuid": "^9.0.1", - "vue": "^3.5.13", + "vue": "^3.5.14", "vue-i18n": "^11.1.3", - "vue-router": "^4.5.0", + "vue-router": "^4.5.1", "vuedraggable": "^4.1.0" }, "devDependencies": { - "@tailwindcss/vite": "^4.1.4", + "@tailwindcss/vite": "^4.1.6", "@types/crypto-js": "^4.2.2", "@types/node": "^18.14.0", "@types/nprogress": "^0.2.0", "@types/sortablejs": "^1.15.8", "@typescript-eslint/eslint-plugin": "^6.7.4", "@typescript-eslint/parser": "^6.7.4", - "@vitejs/plugin-vue": "^5.2.3", - "@vue/compiler-sfc": "^3.5.13", + "@vitejs/plugin-vue": "^5.2.4", + "@vue/compiler-sfc": "^3.5.14", "autoprefixer": "^10.4.21", "code-inspector-plugin": "^0.20.9", "dotenv": "^16.3.1", @@ -60,10 +62,10 @@ "eslint-plugin-vue": "^10.0.0", "postcss": "^8.5.3", "prettier": "^3.5.3", - "sass": "^1.87.0", - "tailwindcss": "^4.1.4", + "sass": "^1.89.0", + "tailwindcss": "^4.1.7", "typescript": "^5.8.2", - "vite": "^6.3.3", + "vite": "^6.3.5", "vite-plugin-progress": "0.0.7", "vue-eslint-parser": "^10.1.3" }, diff --git a/frontend/src/common/assert.ts b/frontend/src/common/assert.ts index a4c004cb..7cf038cd 100644 --- a/frontend/src/common/assert.ts +++ b/frontend/src/common/assert.ts @@ -1,10 +1,12 @@ import { i18n } from '@/i18n'; +import { ElMessage } from 'element-plus'; /** * 不符合业务断言错误 */ class AssertError extends Error { constructor(message: string) { + ElMessage.error(message); super(message); // 错误类名 this.name = 'AssertError'; @@ -15,11 +17,11 @@ class AssertError extends Error { * 断言表达式为true * * @param condition 条件表达式 - * @param msg 错误消息 + * @param msgOrI18nKey 错误消息 或者 i18n key */ -export function isTrue(condition: boolean, msg: string) { +export function isTrue(condition: boolean, msgOrI18nKey: string) { if (!condition) { - throw new AssertError(msg); + throw new AssertError(i18n.global.t(msgOrI18nKey)); } } diff --git a/frontend/src/common/config.ts b/frontend/src/common/config.ts index 61a007a0..80155add 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.9.4', + version: 'v1.10.0', }; export default config; diff --git a/frontend/src/components/pagetable/PageTable.vue b/frontend/src/components/pagetable/PageTable.vue index 7458f055..3c50ffa2 100644 --- a/frontend/src/components/pagetable/PageTable.vue +++ b/frontend/src/components/pagetable/PageTable.vue @@ -133,7 +133,7 @@