修改主题

This commit is contained in:
GGJ
2024-12-17 11:05:04 +08:00
parent 8c4cc891e5
commit e10ca83ec5
11 changed files with 464 additions and 31 deletions

View File

@@ -0,0 +1,34 @@
import createAxios from '@/utils/request'
//激活主题
export function activateTheme(params: String) {
return createAxios({
url: '/system-boot/theme/activateTheme',
method: 'PUT',
params: params
})
}
//删除主题
export function deleteTheme(params: String) {
return createAxios({
url: '/system-boot/theme/deleteTheme',
method: 'DELETE',
params: params
})
}
//新增主题
export function addTheme(data: anyObj) {
return createAxios({
url: '/system-boot/theme/addTheme',
method: 'POST',
data
})
}
//修改主题
export function updateTheme(data: anyObj) {
return createAxios({
url: '/system-boot/theme/updateTheme',
method: 'PUT',
data
})
}

View File

@@ -23,4 +23,9 @@ export function delMenu(id: string) {
method: 'delete'
})
}
export function getTheme() {
return createAxios({
url: '/system-boot/theme/getTheme',
method: 'get'
})
}