fix: 调整数据来源配置

This commit is contained in:
sy2084
2024-07-17 23:19:09 +08:00
parent 91832d1e8c
commit 7afe485d90
10 changed files with 67 additions and 22 deletions

View File

@@ -111,6 +111,11 @@ const selectedRowId = ref();
const selectViewInfo = ref({
type: "",
filter: [],
config: {
line: {
data: []
}
}
});
const pageState = reactive({
@@ -146,6 +151,9 @@ const toGetViewInfo = (params = {}) => {
...params,
}).then((res) => {
selectViewInfo.value = res.data;
delete selectViewInfo.value.config.line.isGroup
delete selectViewInfo.value.config.line.label
selectViewInfo.value.config.line.data = res.data.config.line.data
});
};