Commit 0ca3e8f90daa0a5d86d6f4dfb84b4fc1972aa8ac
1 parent
d9321bd8
perf(src/packages): 优化小组件里大标题1,清除背景置空选择框内容
Showing
1 changed file
with
2 additions
and
2 deletions
... | ... | @@ -130,7 +130,7 @@ const props = defineProps({ |
130 | 130 | }) |
131 | 131 | const uploadFileListRef = ref() |
132 | 132 | |
133 | -const selectValue = ref('headerBg08.png') | |
133 | +const selectValue = ref<string| null>('headerBg08.png') | |
134 | 134 | |
135 | 135 | const getAllBackgroundImageList = computed(() => { |
136 | 136 | const pathList = import.meta.glob('../../../../../../assets/external/headbackground/*') |
... | ... | @@ -220,7 +220,7 @@ const handleChange = (value: boolean) => { |
220 | 220 | const clearImage = () => { |
221 | 221 | props.optionData.backgroundImage = '' |
222 | 222 | props.optionData.bgSrc = '' |
223 | - selectValue.value = '' | |
223 | + selectValue.value = null | |
224 | 224 | } |
225 | 225 | </script> |
226 | 226 | <style lang="scss" scoped> | ... | ... |