fix:修改色彩
This commit is contained in:
@ -119,27 +119,22 @@ store.$onAction(
|
||||
|
||||
// 初始化scheme
|
||||
const initScheme = async () => {
|
||||
try {
|
||||
const response = await axios.get('http://localhost:3000/load');
|
||||
if (response.data && Array.isArray(response.data)) {
|
||||
store.initPreviewScheme(response.data);
|
||||
} else {
|
||||
store.initPreviewScheme([baseScheme]);
|
||||
}
|
||||
} catch (error) {
|
||||
console.error('Error loading data:', error);
|
||||
store.initPreviewScheme([baseScheme]);
|
||||
}
|
||||
// try {
|
||||
// const response = await axios.get('http://localhost:3000/load');
|
||||
// if (response.data && Array.isArray(response.data)) {
|
||||
// store.initPreviewScheme(response.data);
|
||||
// } else {
|
||||
// store.initPreviewScheme([baseScheme]);
|
||||
// }
|
||||
// } catch (error) {
|
||||
// console.error('Error loading data:', error);
|
||||
// store.initPreviewScheme([baseScheme]);
|
||||
// }
|
||||
componentsList = Object.values(componentScheme);
|
||||
store.initComponents(componentsList);
|
||||
};
|
||||
|
||||
onMounted(() => {
|
||||
list0.value.push(
|
||||
{ "id": 123, "name": "www" },
|
||||
{ "id": 125, "name": "rrr" }
|
||||
);
|
||||
list.value = [];
|
||||
initScheme();
|
||||
});
|
||||
|
||||
@ -270,7 +265,7 @@ const view = () => {
|
||||
}
|
||||
|
||||
.ghost {
|
||||
background-color: #f00 !important;
|
||||
background-color: #f2f3f5 !important;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@ -1,5 +1,4 @@
|
||||
[
|
||||
{
|
||||
{
|
||||
"type": "AdaptivePage",
|
||||
"name": "AdaptivePage",
|
||||
"id": "a31c7fb13910000",
|
||||
@ -17,5 +16,4 @@
|
||||
"footer": {},
|
||||
"children": [],
|
||||
"meta": {}
|
||||
}
|
||||
]
|
||||
}
|
||||
Reference in New Issue
Block a user