This commit is contained in:
Fine 2025-01-06 18:06:11 +08:00
parent 926678e311
commit 343d38ef7d

View File

@ -13,15 +13,15 @@ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and See the License for the specific language governing permissions and
limitations under the License. --> limitations under the License. -->
<template> <template>
<div class="snapshot flex-v"> <div style="width: 800px; height: 600px">
<LineChart :intervalTime="appStore.intervalTime" :data="result" /> <LineCharts :intervalTime="appStore.intervalTime" :data="result" />
</div> </div>
</template> </template>
<script lang="ts" setup> <script lang="ts" setup>
import { computed } from "vue"; import { computed } from "vue";
import { useSnapshot } from "@/hooks/useSnapshot"; import { useSnapshot } from "@/hooks/useSnapshot";
import { useAppStoreWithOut } from "@/store/modules/app"; import { useAppStoreWithOut } from "@/store/modules/app";
import LineChart from "./Line.vue"; import LineCharts from "./Line.vue";
/*global defineProps */ /*global defineProps */
const props = defineProps({ const props = defineProps({
@ -33,9 +33,3 @@ limitations under the License. -->
return processResults().reduce((acc, obj) => ({ ...acc, ...obj }), {}); return processResults().reduce((acc, obj) => ({ ...acc, ...obj }), {});
}); });
</script> </script>
<style lang="scss" scoped>
.snapshot {
width: 800px;
height: 600px;
}
</style>