diff --git a/src/components/global/settings-drawer.vue b/src/components/global/settings-drawer.vue
index 813c1d9..35c9cf4 100644
--- a/src/components/global/settings-drawer.vue
+++ b/src/components/global/settings-drawer.vue
@@ -1,8 +1,13 @@
@@ -11,6 +16,10 @@ const show = defineModel('show');
主题
+ 布局
+
+
+
diff --git a/src/pages/dashboard-page.vue b/src/pages/dashboard-page.vue
index 1fb8ef5..b68a655 100644
--- a/src/pages/dashboard-page.vue
+++ b/src/pages/dashboard-page.vue
@@ -11,6 +11,7 @@ import { NGrid, NGi } from 'naive-ui';
import { storeToRefs } from 'pinia';
import { ref, watch } from 'vue';
import { useLineAlarmCountsStore } from '@/stores/line-alarm-counts';
+import { useLayoutStore } from '@/stores/layout';
const stationStore = useStationStore();
const { stationList } = storeToRefs(stationStore);
@@ -21,6 +22,8 @@ const { lineAlarmCounts } = storeToRefs(lineAlarmCountsStore);
const { isFetching: lineDevicesFetching } = useLineDevicesQuery();
const { isFetching: lineAlarmCountsFetching } = useLineAlarmCountsQuery();
+const layoutStore = useLayoutStore();
+const { stationLayoutGridCols } = storeToRefs(layoutStore);
// 当设备查询或告警查询正在进行时,显示加载条
watch(
@@ -56,7 +59,7 @@ const openDeviceParamsConfigModal = (station: Station) => {
-
+
{
+ const stationLayoutGridCols = ref(8);
+
+ return {
+ stationLayoutGridCols,
+ };
+ },
+ {
+ persist: true,
+ },
+);