移动端功能基本完成

This commit is contained in:
2026-04-24 20:52:31 +08:00
parent 8dce0346a7
commit fe17c9a361
31 changed files with 8051 additions and 117 deletions
+10
View File
@@ -25,6 +25,15 @@ export const useConfigStore = defineStore('config', () => {
}
return apiBaseUrl.value
}
// 获取图片基础 URL(去掉末尾的 /api 部分)
const getFileBaseUrl = () => {
const base = getApiBaseUrl()
if (base) {
return base.replace(/\/api$/, '')
}
return base
}
// 设置主题
@@ -39,6 +48,7 @@ export const useConfigStore = defineStore('config', () => {
theme,
setApiBaseUrl,
getApiBaseUrl,
getFileBaseUrl,
setTheme
}
})