Skip to content

Commit 4204c31

Browse files
committed
【功能修复】商城:底部导航栏装修,切换页面后图标变成默认的问题
1 parent cf4ed96 commit 4204c31

File tree

1 file changed

+4
-1
lines changed
  • src/components/DiyEditor/components/mobile/TabBar

1 file changed

+4
-1
lines changed

src/components/DiyEditor/components/mobile/TabBar/property.vue

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@
7979
</template>
8080

8181
<script setup lang="ts">
82-
import { TabBarProperty, THEME_LIST } from './config'
82+
import { TabBarProperty, component, THEME_LIST } from './config'
8383
import { usePropertyForm } from '@/components/DiyEditor/util'
8484
// 底部导航栏
8585
defineOptions({ name: 'TabBarProperty' })
@@ -88,6 +88,9 @@ const props = defineProps<{ modelValue: TabBarProperty }>()
8888
const emit = defineEmits(['update:modelValue'])
8989
const { formData } = usePropertyForm(props.modelValue, emit)
9090
91+
// 将数据库的值更新到右侧属性栏
92+
component.property.items = formData.value.items
93+
9194
// 要的主题
9295
const handleThemeChange = () => {
9396
const theme = THEME_LIST.find((theme) => theme.id === formData.value.theme)

0 commit comments

Comments
 (0)