From 50d877f2f3ba31901ef70306ea033a2373e22262 Mon Sep 17 00:00:00 2001 From: youngS Date: Wed, 19 May 2021 21:49:51 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E5=9F=9F=E5=90=8D=E7=BB=91?= =?UTF-8?q?=E5=AE=9A=E5=8A=9F=E8=83=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- fir_client/src/components/FirBase.vue | 7 +- .../components/apps/FirAppInfossecurity.vue | 2 +- fir_client/src/components/base/BindDomain.vue | 244 +++++++++--------- .../components/user/FirUserProfileInfo.vue | 2 +- fir_ser/api/utils/serializer.py | 5 + 5 files changed, 134 insertions(+), 126 deletions(-) diff --git a/fir_client/src/components/FirBase.vue b/fir_client/src/components/FirBase.vue index e3930a5..359c2bd 100644 --- a/fir_client/src/components/FirBase.vue +++ b/fir_client/src/components/FirBase.vue @@ -6,7 +6,7 @@ :close-on-press-escape="false" :visible.sync="bind_domain_sure" width="666px"> - + @@ -17,7 +17,8 @@ :closable="false" effect="dark">
- 应用分发请绑定您自己的域名,平台分发域名可能因不可违因素更换,将导致您的应用无法访问 + 应用分发请绑定您自己的域名,平台分发域名可能因不可违因素更换,将导致您的应用无法访问 立即绑定
@@ -84,7 +85,7 @@ '$store.state.domain_action': function () { if (this.$store.state.domain_action) { this.$store.dispatch("dodomainaction", false); - this.bind_domain_sure=true; + this.bind_domain_sure = true; } }, } diff --git a/fir_client/src/components/apps/FirAppInfossecurity.vue b/fir_client/src/components/apps/FirAppInfossecurity.vue index a164ee8..369da9d 100644 --- a/fir_client/src/components/apps/FirAppInfossecurity.vue +++ b/fir_client/src/components/apps/FirAppInfossecurity.vue @@ -49,7 +49,7 @@ - 保存 diff --git a/fir_client/src/components/base/BindDomain.vue b/fir_client/src/components/base/BindDomain.vue index 15be676..6b0b036 100644 --- a/fir_client/src/components/base/BindDomain.vue +++ b/fir_client/src/components/base/BindDomain.vue @@ -1,136 +1,138 @@ diff --git a/fir_client/src/components/user/FirUserProfileInfo.vue b/fir_client/src/components/user/FirUserProfileInfo.vue index 271573f..0703c1c 100644 --- a/fir_client/src/components/user/FirUserProfileInfo.vue +++ b/fir_client/src/components/user/FirUserProfileInfo.vue @@ -160,7 +160,7 @@ - diff --git a/fir_ser/api/utils/serializer.py b/fir_ser/api/utils/serializer.py index c5113d1..d25ef21 100644 --- a/fir_ser/api/utils/serializer.py +++ b/fir_ser/api/utils/serializer.py @@ -137,6 +137,11 @@ class AppsSerializer(serializers.ModelSerializer): def get_preview_url(self, obj): return get_redirect_server_domain(None, obj.user_id, get_app_domain_name(obj)) + domain_name = serializers.SerializerMethodField() + + def get_domain_name(self, obj): + return get_app_domain_name(obj) + sign_type_choice = serializers.SerializerMethodField() def get_sign_type_choice(self, obj):