Files
lgp-wx-plus/api/page/theme.js
年糕崽崽 516f077568 初始化
缺陷:主题配色需要优化整体的同风格
2026-08-14 23:17:19 +08:00

20 lines
468 B
JavaScript
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
/**
* 主题 API免鉴权
* baseURL 已含 /api/wx/,这里请求 theme → GET .../api/wx/theme
*/
import { get } from '../request'
/** 当前生效主题(含 tokens / layout / css_vars */
export const getThemeApi = async (code = '') => {
const params = {}
if (code) {
params.code = code
}
return await get('theme', params)
}
/** 可选风格列表 */
export const getThemeGalleryApi = async () => {
return await get('theme-gallery')
}