From e3d8476396f146c6efd9ddc714accfd80474f50c Mon Sep 17 00:00:00 2001 From: ibuler Date: Thu, 28 Mar 2024 15:10:51 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D=E5=88=9B=E5=BB=BA?= =?UTF-8?q?=E8=B4=A6=E5=8F=B7=E6=97=B6=EF=BC=8C=E8=B5=84=E4=BA=A7=E6=B2=A1?= =?UTF-8?q?=E6=9C=89=E9=BB=98=E8=AE=A4=E5=80=BC=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/Apps/AccountCreateUpdateForm/index.vue | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/components/Apps/AccountCreateUpdateForm/index.vue b/src/components/Apps/AccountCreateUpdateForm/index.vue index b5a99881f..1ea9c92fe 100644 --- a/src/components/Apps/AccountCreateUpdateForm/index.vue +++ b/src/components/Apps/AccountCreateUpdateForm/index.vue @@ -75,11 +75,18 @@ export default { try { await this.getPlatform() this.setSecretTypeOptions() + this.getDefaultAssets() } finally { this.loading = false } }, methods: { + async getDefaultAssets() { + const assetId = this.$route.query.asset_id + if (assetId && !this.form.name) { + this.form.assets = [assetId] + } + }, async getPlatform() { if (this.platform) { this.iPlatform = this.platform