办学质量监测教学评价系统
shenrongliang
2025-06-13 11d86cc6c26bb4f709e407acadf4805c2024e79f
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
<script setup lang='ts'>
import { NCard,NImage } from 'naive-ui'
import { onMounted, ref } from 'vue';
import { getConfigKey } from '@/api/user'
import to from "await-to-js";
 
  // 响应式引用
const logo = ref("");
 
// 在组件挂载后执行异步操作
onMounted(async () => {
  try {
    const [err,res] = await to(getConfigKey("customImage"));
    if(err){
        console.error("获取客服信息失败", err.message);
    }else{
        logo.value = res.msg
    }
 
  } catch (error) {
    console.error("获取配置失败", error);
  }
});
</script>
 
<template>
    <n-card  embedded:bordered="false">
    <div style="text-align:center">
      <span>{{ $t('mjchat.customer') }} </span>
      <br>
      <n-image style="margin: 20px;" width="150" :src="logo"/>
      <br>
 
    </div>
       
      <template #action>
        <!-- <div class="p-2 space-y-2 rounded-md">
        <p>
          项目开源于
          <a
            class="text-blue-600 dark:text-blue-500"
            href="https://github.com/ageerle/ruoyi-ai"
            target="_blank"
          >
          Github
          </a>
          ,如果你觉得此项目对你有帮助,请在Github帮我点个Star,谢谢!
        </p>
      </div> -->
      </template>
 
  </n-card>
</template>