|
@@ -94,7 +94,7 @@ export default {
|
|
|
async handleSubmit () {
|
|
|
let url = this.exData.id ? '/user/edit' : '/user/add'
|
|
|
this.form.user_phone = this.form.user_phone.replace(/ /g, '')
|
|
|
- const data = await this.$fetch(url, { ...this.form })
|
|
|
+ const data = await this.$fetch('/api/auth' + url, { ...this.form })
|
|
|
if (data.code === 200) {
|
|
|
this.$message.success('提交成功')
|
|
|
this.$emit('success')
|
|
@@ -102,13 +102,13 @@ export default {
|
|
|
}
|
|
|
},
|
|
|
async getDepartmentArr (project_id) {
|
|
|
- const data = await this.$fetch('/department/get_department_list', { project_id }, 'get')
|
|
|
+ const data = await this.$fetch('/api/auth/department/get_department_list', { project_id }, 'get')
|
|
|
if (data.code == 200) {
|
|
|
this.departmentArr = data.data
|
|
|
}
|
|
|
},
|
|
|
async getRoleArr (department_id) {
|
|
|
- const data = await this.$fetch('/role/get_role_list', { department_id }, 'get')
|
|
|
+ const data = await this.$fetch('/api/auth/role/get_role_list', { department_id }, 'get')
|
|
|
if (data.code == 200) {
|
|
|
this.roleArr = data.data
|
|
|
}
|