wui-components-v2 1.1.78 → 1.1.80

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -50,7 +50,7 @@ const {
50
50
  onMounted(() => {
51
51
  getThemeConfig().then(res => {
52
52
  if (res.status == 'success') {
53
- themeConfig.value = res.themeConfig
53
+ themeConfig.value = res.themeConfig || {}
54
54
  }
55
55
  })
56
56
  })
@@ -71,19 +71,19 @@ onMounted(() => {
71
71
  </template>
72
72
  <view class="px-3 pb-4">
73
73
  <!-- 菜单搜索 -->
74
- <searchBar v-if="themeConfig.showHomePage" />
74
+ <searchBar v-if="themeConfig?.showHomePage" />
75
75
  <!-- 轮播图 -->
76
- <bannerCarousel v-if="themeConfig.showHomePage" />
76
+ <bannerCarousel v-if="themeConfig?.showHomePage" />
77
77
  <!-- 快捷菜单 -->
78
- <sectionMenus v-if="themeConfig.showHomePage" />
78
+ <sectionMenus v-if="themeConfig?.showHomePage" />
79
79
  <!-- 统计 -->
80
- <quickPanel v-if="themeConfig.showHomePage" />
80
+ <quickPanel v-if="themeConfig?.showHomePage" />
81
81
  <!-- 消息 -->
82
82
  <!-- <wuiNotifyInfo /> -->
83
83
 
84
84
  <!-- 菜单卡片列表 -->
85
85
  <view class="menu-section">
86
- <view class="section-header" v-if="themeConfig.showHomePage">
86
+ <view class="section-header" v-if="themeConfig?.showHomePage">
87
87
  <view class="section-title-wrapper">
88
88
  <!-- <view class="section-icon primary">
89
89
  <text class="i-carbon:apps text-sm" />
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "wui-components-v2",
3
- "version": "1.1.78",
3
+ "version": "1.1.80",
4
4
  "description": "wui 组件库",
5
5
  "author": "wgxshh",
6
6
  "license": "MIT",