refactor(app): 调整主页相关组件和页面的代码- 在 AppHeader 组件中添加调试日志,用于检查路由元数据
- 优化 home 页面的代码结构,移除未使用的导入和变量 - 在主页面添加 definePageMeta 以设置页面元数据
This commit is contained in:
parent
6fc63427de
commit
88d1dea0d2
@ -30,7 +30,9 @@ const subTitle = computed(() => {
|
|||||||
return route.meta.subTitle ? t(route.meta.subTitle) : ''
|
return route.meta.subTitle ? t(route.meta.subTitle) : ''
|
||||||
})
|
})
|
||||||
const showLeftArrow = computed(() => route.name && routeWhiteList.includes(route.name))
|
const showLeftArrow = computed(() => route.name && routeWhiteList.includes(route.name))
|
||||||
|
console.log('route.meta.i18n',route.meta.i18n)
|
||||||
|
console.log('t(route.meta.i18n)',route.meta.i18n)
|
||||||
|
console.log('route.meta.title',route.meta.title)
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<template>
|
<template>
|
||||||
|
@ -3,21 +3,11 @@ import liveRoom from '@/pages/liveRoom/index.client.vue';
|
|||||||
import {goodStore} from "@/stores/goods/index.js";
|
import {goodStore} from "@/stores/goods/index.js";
|
||||||
import ItemList from './components/ItemList/index.vue'
|
import ItemList from './components/ItemList/index.vue'
|
||||||
import Cescribe from './components/Cescribe/index.vue'
|
import Cescribe from './components/Cescribe/index.vue'
|
||||||
|
const {fullLive, liveRef} = goodStore();
|
||||||
import {artworkList} from "@/api/goods/index.js";
|
|
||||||
import {ref} from "vue";
|
|
||||||
|
|
||||||
const {fullLive, getAuctionDetail, auctionDetail, itemList, pageRef, liveRef} = goodStore();
|
|
||||||
definePageMeta({
|
|
||||||
layout: 'default',
|
|
||||||
title: '主页',
|
|
||||||
i18n: 'menu.home',
|
|
||||||
})
|
|
||||||
const changeLive = () => {
|
const changeLive = () => {
|
||||||
fullLive.value = true;
|
fullLive.value = true;
|
||||||
};
|
};
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<template>
|
<template>
|
||||||
<div class="flex-grow-1">
|
<div class="flex-grow-1">
|
||||||
<client-only>
|
<client-only>
|
||||||
@ -37,11 +27,6 @@ const changeLive = () => {
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
<style>
|
|
||||||
:root:root {
|
|
||||||
--van-action-sheet-header-height: 39px;
|
|
||||||
}
|
|
||||||
</style>
|
|
||||||
<style scoped lang="scss">
|
<style scoped lang="scss">
|
||||||
.ellipsis {
|
.ellipsis {
|
||||||
display: -webkit-box;
|
display: -webkit-box;
|
||||||
|
@ -1,6 +1,10 @@
|
|||||||
<script setup>
|
<script setup>
|
||||||
import Home from './home/index.vue'
|
import Home from './home/index.vue'
|
||||||
|
definePageMeta({
|
||||||
|
layout: 'default',
|
||||||
|
title: '主页',
|
||||||
|
i18n: 'menu.home',
|
||||||
|
})
|
||||||
</script>
|
</script>
|
||||||
<template>
|
<template>
|
||||||
<Home/>
|
<Home/>
|
||||||
|
Loading…
Reference in New Issue
Block a user