From d8b124c1a7d949912b53343a589d8806141a86d9 Mon Sep 17 00:00:00 2001 From: isummer Date: Tue, 26 Jul 2022 14:07:26 +0800 Subject: [PATCH] =?UTF-8?q?=E7=94=A8=E6=88=B7=E4=B8=8B=E8=BD=BD=E9=A1=B5?= =?UTF-8?q?=E7=A7=81=E6=9C=89=E9=85=8D=E7=BD=AE=E5=8A=9F=E8=83=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- fir_admin/src/views/appinfos/list.vue | 4 +- fir_client/src/components/FirHeader.vue | 3 + fir_client/src/components/base/BindDomain.vue | 47 +- .../src/components/user/FirUserDomain.vue | 82 ++- .../src/components/user/FirUserDownload.vue | 470 ++++++++++++++++++ fir_client/src/restful/index.js | 11 + fir_client/src/router/index.js | 5 + .../api/migrations/0007_auto_20220725_1612.py | 32 ++ fir_ser/api/models.py | 10 +- fir_ser/api/urls.py | 3 +- fir_ser/api/utils/modelutils.py | 7 +- fir_ser/api/utils/serializer.py | 11 + fir_ser/api/views/domain.py | 122 ++++- fir_ser/api/views/personalconfig.py | 19 +- fir_ser/common/base/baseutils.py | 22 +- fir_ser/common/core/sysconfig.py | 24 +- fir_ser/config.py | 9 +- fir_ser/fir_ser/settings.py | 1 + 18 files changed, 790 insertions(+), 92 deletions(-) create mode 100644 fir_client/src/components/user/FirUserDownload.vue create mode 100644 fir_ser/api/migrations/0007_auto_20220725_1612.py diff --git a/fir_admin/src/views/appinfos/list.vue b/fir_admin/src/views/appinfos/list.vue index 2fca46b..5bbfe84 100644 --- a/fir_admin/src/views/appinfos/list.vue +++ b/fir_admin/src/views/appinfos/list.vue @@ -4,7 +4,7 @@ - + @@ -221,7 +221,7 @@ export default { type: 'warning' }).then(() => { this.listLoading = true - deleteApp(app_id).then(response => { + deleteApp(app_id).then(() => { this.$message.success('删除成功') this.fetchData() this.listLoading = false diff --git a/fir_client/src/components/FirHeader.vue b/fir_client/src/components/FirHeader.vue index 9bba2f4..45afa21 100644 --- a/fir_client/src/components/FirHeader.vue +++ b/fir_client/src/components/FirHeader.vue @@ -51,6 +51,7 @@ 个人资料 API token 设置域名 + 下载配置 消息中心 宣传广告 @@ -135,6 +136,8 @@ export default { } else if (command === 'setdomian') { this.$router.push({"name": 'FirUserDomain'}) + } else if (command === 'download') { + this.$router.push({"name": 'FirUserDownload'}) } else if (command === 'setadvert') { this.$router.push({"name": 'FirUserAdvert'}) } else if (command === 'myorder') { diff --git a/fir_client/src/components/base/BindDomain.vue b/fir_client/src/components/base/BindDomain.vue index 51b3c66..0dfd13a 100644 --- a/fir_client/src/components/base/BindDomain.vue +++ b/fir_client/src/components/base/BindDomain.vue @@ -21,6 +21,7 @@ 请联系域名管理员,前往 {{ domain_name }} 域名 DNS 管理后台添加如下 CNAME 记录。