Skip to content

Commit 0b3ddf4

Browse files
authored
Merge pull request #364 from LiangAhua/feature-liang
fix
2 parents 324f1f8 + bd47ad4 commit 0b3ddf4

File tree

2 files changed

+6
-28
lines changed

2 files changed

+6
-28
lines changed

public/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<!DOCTYPE html>
2-
<html lang="en">
2+
<html lang="zh">
33
<head>
44
<meta charset="utf-8">
55
<meta http-equiv="X-UA-Compatible" content="IE=edge">

src/views/deploy/Deploy.vue

Lines changed: 5 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -155,24 +155,6 @@
155155
></el-input>
156156
</el-form-item>
157157
</el-col>
158-
<el-col :span="10">
159-
<el-form-item :label="$t('views.deploy.department')">
160-
<el-select
161-
v-model="agentForm.department"
162-
class="addUserInput"
163-
clearable
164-
size="small"
165-
style="width: 180px"
166-
>
167-
<el-option
168-
v-for="(item, index) in departmentList"
169-
:key="index"
170-
:label="item.name"
171-
:value="item.token"
172-
></el-option>
173-
</el-select>
174-
</el-form-item>
175-
</el-col>
176158
</el-row>
177159
</el-form>
178160
</div>
@@ -807,23 +789,19 @@ export default class Deploy extends VueBase {
807789
}
808790
}
809791
810-
private async getListDepartment() {
811-
// 部门list
812-
const res = await this.services.deploy.getDepartment({})
792+
private async getUserToken() {
793+
const res = await this.services.user.userToken()
813794
if (res.status === 201) {
814-
this.departmentList = res.data
815-
this.token = res.data[res.data.length - 1]?.token || ''
816-
this.agentForm.department = this.token
817-
return
795+
this.token = res.data.token
818796
}
819-
this.$message.error(res.msg)
820797
}
798+
821799
private async created() {
822-
await this.getListDepartment()
823800
this.agentForm.entryName = 'Demo Project'
824801
this.agentForm.version = 'V1.0'
825802
await this.getMd()
826803
await this.getDoc()
804+
this.getUserToken()
827805
}
828806
}
829807
</script>

0 commit comments

Comments
 (0)