diff --git a/frontend/desktop/package.json b/frontend/desktop/package.json index 0bcf50cdeb..b30226a59b 100644 --- a/frontend/desktop/package.json +++ b/frontend/desktop/package.json @@ -11,7 +11,7 @@ "license": "ISC", "dependencies": { "@blueking/bkcharts": "^2.0.11-alpha.5", - "@blueking/bkui-form": "0.0.41", + "@blueking/bkui-form": "0.0.41-beta.1", "@blueking/crypto-js-sdk": "0.0.5", "@blueking/notice-component-vue2": "^2.0.1", "@blueking/user-selector": "^1.0.5-beta.2", diff --git a/frontend/desktop/src/pages/task/TaskExecute/ExecuteInfo/JsonschemaForm.vue b/frontend/desktop/src/pages/task/TaskExecute/ExecuteInfo/JsonschemaForm.vue index 63ddd103ed..c4a028d2e5 100644 --- a/frontend/desktop/src/pages/task/TaskExecute/ExecuteInfo/JsonschemaForm.vue +++ b/frontend/desktop/src/pages/task/TaskExecute/ExecuteInfo/JsonschemaForm.vue @@ -5,6 +5,7 @@ :readonly="true" :value="formData" :schema="schema" + :context="context" :layout="{ group: [], container: { gap: '14px' } }"> @@ -33,7 +34,11 @@ }, data () { return { - formData: tools.deepClone(this.value) + formData: tools.deepClone(this.value), + context: { + site_url: $.context.site_url, + project_id: $.context.project?.id + } } }, watch: { @@ -45,28 +50,33 @@