File tree Expand file tree Collapse file tree 2 files changed +6
-28
lines changed
Expand file tree Collapse file tree 2 files changed +6
-28
lines changed Original file line number Diff line number Diff line change 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 ">
Original file line number Diff line number Diff line change 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 >
You can’t perform that action at this time.
0 commit comments