修改显示1

v1.0.0
于肖磊 2024-09-14 18:42:33 +08:00
parent 40f2f2c4b0
commit f2433cc0ad
2 changed files with 2 additions and 3 deletions

View File

@ -254,8 +254,6 @@ const get_products = () => {
};
//
ShopAPI.getShopLists(params).then((res: any) => {
form.value.data_auto_list = res.data;
console.log(form.value);
if (!isEmpty(res.data)) {
list.value = res.data;
} else {

View File

@ -91,7 +91,8 @@ const default_config = {
const form = ref(props.value);
const change_theme = (val: string) => {
if (val) {
form.value.style = Object.assign({}, form.value.style, cloneDeep(default_data), (<arrayIndex>default_config.style)[`theme_${Number(val)}`]);
form.value.style = Object.assign({}, form.value.style, cloneDeep(default_data), cloneDeep((<arrayIndex>default_config.style)[`theme_${Number(val)}`].style));
form.value.content = Object.assign({}, form.value.content, cloneDeep((<arrayIndex>default_config.style)[`theme_${Number(val)}`].content));
}
};
</script>