fix: 产品页面完善,增加空白布局与布局切换

This commit is contained in:
Gsh
2025-06-26 00:35:13 +08:00
parent 695aaedfba
commit 0eb83fc930
9 changed files with 35 additions and 13 deletions

View File

@@ -3,7 +3,13 @@ import type { Product } from '@/api/products/products';
import { ArrowDown, CircleCheck } from '@element-plus/icons-vue';
import { computed, ref } from 'vue';
import { products } from '@/data/products';
import { useDesignStore } from '@/stores';
const designStore = useDesignStore();
onMounted(() => {
designStore._setLayout('blankPage');
});
const productsSection = ref<HTMLElement | null>(null);
function scrollToProducts() {
@@ -174,6 +180,8 @@ const comparisonData = computed(() => {
<style scoped lang="scss">
.products-page {
height: 100vh;
overflow: auto;
color: #333;
line-height: 1.6;
}