feat: new WebUI for the main page, add MJ and SD drawing function pages

This commit is contained in:
RockYang
2023-09-11 16:22:11 +08:00
parent 327929243c
commit f4c6ca4554
19 changed files with 541 additions and 38 deletions

View File

@@ -3,7 +3,6 @@
<el-container>
<el-aside>
<div class="title-box">
<el-image :src="logo" class="logo"/>
<span>{{ title }}</span>
</div>
<div class="chat-list">
@@ -285,7 +284,6 @@ import Welcome from "@/components/Welcome.vue";
import ChatMidJourney from "@/components/ChatMidJourney.vue";
const title = ref('ChatGPT-智能助手');
const logo = '/images/logo.png';
const rewardImg = ref('/images/reward.png')
const models = ref([])
const modelID = ref(0)
@@ -359,6 +357,12 @@ onMounted(() => {
router.push('/login')
});
httpGet("/api/admin/config/get?key=system").then(res => {
title.value = res.data.title
}).catch(e => {
ElMessage.error("获取系统配置失败:" + e.message)
})
const clipboard = new Clipboard('.copy-reply');
clipboard.on('success', () => {
ElMessage.success('复制成功!');