Refactor API requests and update component styles

This commit is contained in:
wangqiao
2025-08-23 17:14:42 +08:00
parent bf86652ff2
commit 38f6d8c062
15 changed files with 376 additions and 294 deletions

14
composables/states.ts Normal file
View File

@ -0,0 +1,14 @@
/** 用户信息 **/
export const useToken = () =>
useState<string>('token', () => {
const token = useCookie<string | undefined>('token');
return token.value ? 'Bearer ' + token.value : '';
});
/** 热门数据 */
export const useHotMeg = () => useState<any>('hotMsg', () => {
return {
projectType:'',
projectTypeTop: ''
}
});