From a7379063653c4e468ed867d9b7d47631975f4b66 Mon Sep 17 00:00:00 2001 From: xinwen Date: Wed, 13 May 2020 20:49:16 +0800 Subject: [PATCH] =?UTF-8?q?[Update]=20=E4=BF=AE=E5=A4=8D=20RemoteApp=20?= =?UTF-8?q?=E6=8F=90=E4=BA=A4=E4=B8=A2=E5=A4=B1=20type=20=E5=AD=97?= =?UTF-8?q?=E6=AE=B5=20bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../applications/RemoteApp/RemoteAppCreateUpdate.vue | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/src/views/applications/RemoteApp/RemoteAppCreateUpdate.vue b/src/views/applications/RemoteApp/RemoteAppCreateUpdate.vue index 9527ac350..c31fb2a58 100644 --- a/src/views/applications/RemoteApp/RemoteAppCreateUpdate.vue +++ b/src/views/applications/RemoteApp/RemoteAppCreateUpdate.vue @@ -18,8 +18,12 @@ export default { const app_type_meta = REMOTE_APP_TYPE_META_MAP[app_type] return { + initial: { + type: app_type_meta.name + }, fields: [ - [this.$t('route.RemoteApp'), ['name', 'asset', 'type', 'path', 'comment', 'params']] + [this.$t('route.RemoteApp'), ['name', 'asset', 'type', 'path', 'comment']], + [this.$t('applications.' + app_type), ['params']] ], url: '/api/v1/applications/remote-apps/', fieldsMeta: { @@ -28,7 +32,7 @@ export default { multiple: false, value: [], ajax: { - url: '/api/v1/assets/assets/?platform__base=Linux', + url: '/api/v1/assets/assets/?platform__base=Windows', processResults(data) { const results = data.results.map((item) => { return { label: item.hostname, value: item.id } @@ -44,7 +48,7 @@ export default { options: [ { label: app_type_meta.title, - value: app_type_meta.value + value: app_type_meta.name } ], disabled: true