xuyonghao
2024-11-27 db2339e341668d14506c114ee88d6d143d4813b0
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
<template>
  <div class="container">
    <Breadcrumb :items="['Agent', '配置']" />
    <div class="iframe-box">
      <iframe :src="url" height="100%" width="100%" frameborder="0"></iframe>
    </div>
  </div>
</template>
 
<script lang="ts" setup>
  import defaultSettings from '@/config/settings.json';
  import { getToken } from '@/api/user';
  import { onBeforeMount, ref } from 'vue';
 
  const url = ref('');
 
  onBeforeMount(async () => {
    const { ragflow_token } = await getToken();
    console.log('ragflow_token', ragflow_token);
    url.value = `http://${window.location.hostname}:9222/authorization?ragflow_token=${ragflow_token}`;
  });
</script>
 
<script lang="ts">
  export default {
    name: 'Agent',
  };
</script>
 
<style scoped lang="less">
  .container {
    padding: 0 20px 20px 20px;
 
    :deep(.arco-list-content) {
      overflow-x: hidden;
    }
 
    :deep(.arco-card-meta-title) {
      font-size: 14px;
    }
  }
 
  .iframe-box {
    width: 100%;
    height: calc(100vh - 176px);
  }
</style>