修改主题
This commit is contained in:
34
src/api/system/subject/index.ts
Normal file
34
src/api/system/subject/index.ts
Normal 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
|
||||
})
|
||||
}
|
||||
@@ -23,4 +23,9 @@ export function delMenu(id: string) {
|
||||
method: 'delete'
|
||||
})
|
||||
}
|
||||
|
||||
export function getTheme() {
|
||||
return createAxios({
|
||||
url: '/system-boot/theme/getTheme',
|
||||
method: 'get'
|
||||
})
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user