pref: reduce code

This commit is contained in:
ChenZhaoYu
2023-02-10 09:19:37 +08:00
parent e8cb651db3
commit ac6e860a67
21 changed files with 147 additions and 1126 deletions

View File

@@ -1,25 +1,13 @@
<script setup lang="ts">
import { NConfigProvider } from 'naive-ui'
import { NaiveProvider } from '@/components'
import { GithubSite, NaiveProvider } from '@/components'
import Chat from '@/views/Chat/index.vue'
</script>
<template>
<NConfigProvider class="h-full" preflight-style-disabled>
<NaiveProvider>
<div class="h-full overflow-hidden">
<div class="h-full pb-[50px] p-4">
<Chat />
</div>
<div class="fixed bottom-0 left-0 right-0 p-4 text-sm text-center text-neutral-500">
<span class="text-center">
Made By ChenZhaoYu -
<a href="https://github.com/Chanzhaoyu/chatgpt-bot" target="_blank" class="text-blue-500">
Github
</a>
</span>
</div>
</div>
</NaiveProvider>
</NConfigProvider>
<NaiveProvider>
<div class="h-full overflow-hidden pb-[50px] p-4">
<Chat />
<GithubSite />
</div>
</NaiveProvider>
</template>