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

@@ -55,9 +55,11 @@
</template>
<script setup>
import {ref} from "vue";
import {onMounted, ref} from "vue";
import {httpGet} from "@/utils/http";
import {ElMessage} from "element-plus";
const title = process.env.VUE_APP_TITLE
const title = ref(process.env.VUE_APP_TITLE)
const samples = ref([
"用小学生都能听懂的术语解释什么是量子纠缠",
@@ -95,6 +97,14 @@ const capabilities = ref([
}
])
onMounted(() => {
httpGet("/api/admin/config/get?key=system").then(res => {
title.value = res.data.title
}).catch(e => {
ElMessage.error("获取系统配置失败:" + e.message)
})
})
const emits = defineEmits(['send']);
const send = (text) => {
emits('send', text)