hse修改接口

This commit is contained in:
Teo
2025-08-29 16:51:40 +08:00
parent e99e27c8d1
commit b0abb5f47b
3 changed files with 5 additions and 5 deletions

View File

@ -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'

View File

@ -12,9 +12,9 @@ export function listPost(query: { pageNum: number; pageSize: number }): AxiosPro
}
// 查询岗位列表
export function listTreeByProject(projectId: string): AxiosPromise<PostVO[]> {
export function listTreeByProject(): AxiosPromise<PostVO[]> {
return request({
url: '/system/dept/list/treeByProjectId/' + projectId,
url: '/system/dept/list/tree',
method: 'get'
});
}

View File

@ -145,7 +145,7 @@ const state = reactive<any>({
});
const postList = () => {
listTreeByProject(currentProject.value?.id).then((res) => {
listTreeByProject().then((res) => {
console.log('🚀 ~ listTreeByProject ~ res:', res);
state.postListAll = res.data ?? [];
});