refactor: 优化 GiTable 列类型使用

This commit is contained in:
2024-04-16 20:20:57 +08:00
parent 2e2927a189
commit 35c59e219e
11 changed files with 32 additions and 28 deletions

View File

@@ -1,19 +1,19 @@
<template>
<section class="system-logo" :class="{ collapsed: props.collapsed }" @click="toHome">
<img v-if="webLogo" class="logo" :src="webLogo" alt="logo"/>
<img v-else class="logo" src="@/assets/images/logo.svg" alt="logo"/>
<img v-if="webLogo" class="logo" :src="webLogo" alt="logo" />
<img v-else class="logo" src="@/assets/images/logo.svg" alt="logo" />
<span class="system-name">{{ webTitle }}</span>
</section>
</template>
<script setup lang="ts">
import {useAppStore} from "@/stores";
import { useAppStore } from '@/stores'
const appStore= useAppStore();
const appStore = useAppStore()
appStore.initWebConfig()
const webTitle = computed(() => appStore.getTitle());
const webLogo = computed(() => appStore.getLogo());
const webTitle = computed(() => appStore.getTitle())
const webLogo = computed(() => appStore.getLogo())
interface Props {
collapsed?: boolean