diff --git a/.env.development b/.env.development index ab16fab..6f65255 100644 --- a/.env.development +++ b/.env.development @@ -6,11 +6,11 @@ VITE_APP_ENV = 'development' # 开发环境 # 李陈杰 209 -# VITE_APP_BASE_API = 'http://192.168.110.209:8899' +VITE_APP_BASE_API = 'http://192.168.110.209:8899' # 曾涛 # VITE_APP_BASE_API = 'http://192.168.110.180:8899' # 罗成 -VITE_APP_BASE_API = 'http://192.168.110.188:8899' +# VITE_APP_BASE_API = 'http://192.168.110.188:8899' # 朱银 # VITE_APP_BASE_API = 'http://192.168.110.180:8899' diff --git a/src/api/system/post/index.ts b/src/api/system/post/index.ts index 54a64b2..9f028ab 100644 --- a/src/api/system/post/index.ts +++ b/src/api/system/post/index.ts @@ -12,9 +12,9 @@ export function listPost(query: { pageNum: number; pageSize: number }): AxiosPro } // 查询岗位列表 -export function listTreeByProject(projectId: string): AxiosPromise { +export function listTreeByProject(): AxiosPromise { return request({ - url: '/system/dept/list/treeByProjectId/' + projectId, + url: '/system/dept/list/tree', method: 'get' }); } diff --git a/src/views/safety/violationLevel/index.vue b/src/views/safety/violationLevel/index.vue index 0e02a41..b954995 100644 --- a/src/views/safety/violationLevel/index.vue +++ b/src/views/safety/violationLevel/index.vue @@ -145,7 +145,7 @@ const state = reactive({ }); const postList = () => { - listTreeByProject(currentProject.value?.id).then((res) => { + listTreeByProject().then((res) => { console.log('🚀 ~ listTreeByProject ~ res:', res); state.postListAll = res.data ?? []; });