From bd47ad4b9179a3ac2bf999acbb64bf602d82775d Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=E6=A2=81=E8=89=AF=E8=89=AF?= <330441606@qq.com>
Date: Tue, 15 Aug 2023 15:31:30 +0800
Subject: [PATCH] fix
---
public/index.html | 2 +-
src/views/deploy/Deploy.vue | 32 +++++---------------------------
2 files changed, 6 insertions(+), 28 deletions(-)
diff --git a/public/index.html b/public/index.html
index 781c801e..8ea42dcc 100644
--- a/public/index.html
+++ b/public/index.html
@@ -1,5 +1,5 @@
-
+
diff --git a/src/views/deploy/Deploy.vue b/src/views/deploy/Deploy.vue
index dad6cdde..ab2ff405 100644
--- a/src/views/deploy/Deploy.vue
+++ b/src/views/deploy/Deploy.vue
@@ -155,24 +155,6 @@
>
-
-
-
-
-
-
-
@@ -807,23 +789,19 @@ export default class Deploy extends VueBase {
}
}
- private async getListDepartment() {
- // 部门list
- const res = await this.services.deploy.getDepartment({})
+ private async getUserToken() {
+ const res = await this.services.user.userToken()
if (res.status === 201) {
- this.departmentList = res.data
- this.token = res.data[res.data.length - 1]?.token || ''
- this.agentForm.department = this.token
- return
+ this.token = res.data.token
}
- this.$message.error(res.msg)
}
+
private async created() {
- await this.getListDepartment()
this.agentForm.entryName = 'Demo Project'
this.agentForm.version = 'V1.0'
await this.getMd()
await this.getDoc()
+ this.getUserToken()
}
}