This is an automated email from the ASF dual-hosted git repository.

benjobs pushed a commit to branch dev
in repository https://gitbox.apache.org/repos/asf/incubator-streampark.git


The following commit(s) were added to refs/heads/dev by this push:
     new 8e9530fdc fix: FE build script (#2947)
8e9530fdc is described below

commit 8e9530fdc4d1f75bcdb1f34a6e6a425042cbf00c
Author: Kriszu <[email protected]>
AuthorDate: Tue Aug 15 23:37:14 2023 +0800

    fix: FE build script (#2947)
    
    * fix: FE build script
    
    * fix: script
---
 streampark-console/streampark-console-webapp/package.json     | 11 ++++-------
 .../src/components/Form/src/hooks/useFormEvents.ts            |  2 +-
 2 files changed, 5 insertions(+), 8 deletions(-)

diff --git a/streampark-console/streampark-console-webapp/package.json 
b/streampark-console/streampark-console-webapp/package.json
index 2f998a087..ba01452f7 100644
--- a/streampark-console/streampark-console-webapp/package.json
+++ b/streampark-console/streampark-console-webapp/package.json
@@ -16,12 +16,11 @@
   },
   "homepage": "https://streampark.apache.org";,
   "scripts": {
-    "preinstall": "npx only-allow pnpm",
     "bootstrap": "pnpm install",
     "serve": "npm run dev",
     "dev": "vite",
-    "build": "cross-env NODE_ENV=production 
NODE_OPTIONS=--max-old-space-size=8192 pnpm vite build",
-    "build:analyze": "cross-env NODE_OPTIONS=--max-old-space-size=8192 pnpm 
vite build --mode analyze",
+    "build": "vite build",
+    "build:analyze": "vite build --mode analyze",
     "build:test": "cross-env vite build --mode test",
     "build:no-cache": "npm run clean:cache && npm run build",
     "report": "cross-env REPORT=true npm run build",
@@ -48,7 +47,6 @@
     "@vue/shared": "^3.3.4",
     "@vueuse/core": "^10.2.1",
     "@vueuse/shared": "^10.2.1",
-    "@zxcvbn-ts/core": "^3.0.2",
     "ant-design-vue": "^3.2.20",
     "axios": "^1.4.0",
     "crypto-js": "^4.1.1",
@@ -57,7 +55,6 @@
     "monaco-editor": "^0.40.0",
     "nprogress": "^0.2.0",
     "path-to-regexp": "^6.2.1",
-    "penpal": "^6.2.2",
     "pinia": "2.1.4",
     "qs": "^6.11.2",
     "resize-observer-polyfill": "^1.5.1",
@@ -111,7 +108,7 @@
     "stylelint-order": "^6.0.3",
     "ts-node": "^10.9.1",
     "typescript": "^5.1.6",
-    "vite": "^4.4.3",
+    "vite": "^4.4.9",
     "vite-plugin-compression": "^0.5.1",
     "vite-plugin-html-transform": "^1.0.0",
     "vite-plugin-imagemin": "^0.6.1",
@@ -119,7 +116,7 @@
     "vite-plugin-style-import": "^2.0.0",
     "vite-plugin-svg-icons": "^2.0.1",
     "vite-plugin-theme": "^0.8.6",
-    "vite-plugin-windicss": "^1.9.0",
+    "vite-plugin-windicss": "^1.9.1",
     "vue-eslint-parser": "^9.3.1",
     "vue-tsc": "^1.8.4"
   },
diff --git 
a/streampark-console/streampark-console-webapp/src/components/Form/src/hooks/useFormEvents.ts
 
b/streampark-console/streampark-console-webapp/src/components/Form/src/hooks/useFormEvents.ts
index 6409ce5c2..32bb12095 100644
--- 
a/streampark-console/streampark-console-webapp/src/components/Form/src/hooks/useFormEvents.ts
+++ 
b/streampark-console/streampark-console-webapp/src/components/Form/src/hooks/useFormEvents.ts
@@ -109,7 +109,7 @@ export function useFormEvents({
       } else {
         nestKeyArray.forEach((nestKey: string) => {
           try {
-            const value = eval('values' + delimiter + nestKey);
+            const value = nestKey.split('.').reduce((out, item) => out[item], 
values);
             if (isDef(value)) {
               formModel[nestKey] = value;
               validKeys.push(nestKey);

Reply via email to