mirror of
https://github.com/fastapiadmin/FastapiAdmin.git
synced 2026-09-26 14:23:48 +00:00
refactor(页面): 移除多个页面中的导航栏和返回逻辑
feat(轮播图): 更新轮播图图片资源并简化点击事件 style(主题): 简化导航栏颜色设置逻辑 chore(配置): 更新开发环境API基础URL配置 chore(数据库): 删除mysql配置文件 docs(组件): 更新组件类型声明文件
This commit is contained in:
@@ -54,16 +54,11 @@ export const useThemeStore = defineStore("appTheme", () => {
|
||||
|
||||
// 设置导航栏颜色
|
||||
const setNavigationBarColor = () => {
|
||||
// 只在非H5环境下调用setNavigationBarColor
|
||||
if (process.env.UNI_PLATFORM !== "h5") {
|
||||
console.log("设置导航栏颜色", theme.value);
|
||||
uni.setNavigationBarColor({
|
||||
frontColor: theme.value === "light" ? "#000000" : "#ffffff",
|
||||
backgroundColor: theme.value === "light" ? "#ffffff" : "#000000",
|
||||
});
|
||||
} else {
|
||||
console.log("H5环境下跳过设置导航栏颜色");
|
||||
}
|
||||
console.log("设置导航栏颜色", theme.value);
|
||||
uni.setNavigationBarColor({
|
||||
frontColor: theme.value === "light" ? "#000000" : "#ffffff",
|
||||
backgroundColor: theme.value === "light" ? "#ffffff" : "#000000",
|
||||
});
|
||||
};
|
||||
|
||||
// 设置主题色
|
||||
|
||||
Reference in New Issue
Block a user