mirror of
https://github.com/ialley-workshop-open/uni-halo.git
synced 2026-07-27 04:20:43 +08:00
refactor: 项目结构与代码优化调整
1. 重构tabbar路由与多语言key,调整首页默认跳转 2. 拆分博客页面到subpkg目录,调整vite分包配置 3. 新增markdown、图片组件、滚动钩子等工具模块 4. 优化api类型定义与工具函数,修复图片缓存逻辑 5. 调整国际化文案与个人页面路径
This commit is contained in:
@@ -1,3 +1,5 @@
|
||||
import { sleep } from '@/utils/common'
|
||||
|
||||
export const randomImageUrl = {
|
||||
ycy: 'https://t.alcy.cc/ycy',
|
||||
pc: 'https://t.alcy.cc/pc',
|
||||
@@ -13,11 +15,12 @@ export const randomVideosUrl = {
|
||||
acg: 'https://t.alcy.cc/acg',
|
||||
}
|
||||
|
||||
export function getPicsum(width: number = 800, height?: number) {
|
||||
export function getPicSumImages(width: number = 800, height?: number) {
|
||||
const t = `${Date.now()}+${Math.random()}`
|
||||
if (!height) {
|
||||
return `https://picsum.photos/${width}`
|
||||
return `https://picsum.photos/${width}?t=${t}`
|
||||
}
|
||||
return `https://picsum.photos/${width}/${height}`
|
||||
return `https://picsum.photos/${width}/${height}?t=${t}`
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user