1
0
mirror of https://github.com/ialley-workshop-open/uni-halo.git synced 2026-06-12 13:19:31 +08:00

refactor: 将页面配置通过插件动态化配置(plugin-uni-halo)

This commit is contained in:
小莫唐尼
2024-06-24 18:59:05 +08:00
parent 959acab9c7
commit e17edade28
54 changed files with 5299 additions and 5653 deletions
+3 -3
View File
@@ -7,7 +7,7 @@ export const Platform = {
* 检查当前环境是什么环境
*/
export const checkPlatform = (name) => {
return uni.getSystemInfoSync().platform == name;
return uni.getSystemInfoSync().platform === name;
}
// 默认的应用设置
@@ -20,7 +20,7 @@ export const _DefaultAppSettings = {
},
// 布局配置
layout: {
// h_row_col1 = 一行一列
// h_row_col1 = 一行一列
// h_row_col2 = 一行两列
home: 'h_row_col1',
// lr_image_text=左图右文
@@ -51,7 +51,7 @@ export const _DefaultAppSettings = {
},
about: {
showAdmin: false, // 显示后台登录入口
showAllCount: false, // 默认显示所有的统计信息(关于页面)
showAllCount: false, // 默认显示所有的统计信息(关于页面)
},
// 文章配置
article: {