fix: element-plus版本升级问题调整
Former-commit-id: 74a0b83abe42f3ace71c23b5091a5dc7cf487213
This commit is contained in:
@@ -30,7 +30,7 @@ export function listSelectDepartments(): AxiosPromise<Option[]> {
|
||||
*
|
||||
* @param id
|
||||
*/
|
||||
export function getDeptFormDetail(id: number): AxiosPromise<DeptFormData> {
|
||||
export function getDeptDetail(id: string): AxiosPromise<DeptFormData> {
|
||||
return request({
|
||||
url: '/youlai-admin/api/v1/depts/' + id,
|
||||
method: 'get'
|
||||
@@ -57,7 +57,7 @@ export function addDept(data: DeptFormData) {
|
||||
* @param id
|
||||
* @param data
|
||||
*/
|
||||
export function updateDept(id: number, data: DeptFormData) {
|
||||
export function updateDept(id: string, data: DeptFormData) {
|
||||
return request({
|
||||
url: '/youlai-admin/api/v1/depts/' + id,
|
||||
method: 'put',
|
||||
|
||||
@@ -40,7 +40,7 @@ export function listSelectMenus(): AxiosPromise<Option[]> {
|
||||
* 获取菜单详情
|
||||
* @param id
|
||||
*/
|
||||
export function getMenuFormDetail(id: number): AxiosPromise<MenuFormData> {
|
||||
export function getMenuDetail(id: number): AxiosPromise<MenuFormData> {
|
||||
return request({
|
||||
url: '/youlai-admin/api/v1/menus/' + id,
|
||||
method: 'get'
|
||||
@@ -66,7 +66,7 @@ export function addMenu(data: MenuFormData) {
|
||||
* @param id
|
||||
* @param data
|
||||
*/
|
||||
export function updateMenu(id: number, data: MenuFormData) {
|
||||
export function updateMenu(id: string, data: MenuFormData) {
|
||||
return request({
|
||||
url: '/youlai-admin/api/v1/menus/' + id,
|
||||
method: 'put',
|
||||
|
||||
Reference in New Issue
Block a user