Blame view

yudao-ui-admin/src/components/DocAlert/index.vue 445 Bytes
efe42001   YunaiV   开发环境下,管理后台每个菜单展示对...
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
  <template>
    <el-alert v-if="enable()" :title="'【' + title + '】文档地址:' + url" type="success" show-icon />
  </template>
  
  <script>
  import {getDocEnable} from "@/utils/ruoyi";
  
  export default {
    name: "DocAlert",
    props: {
      title: String,
      url: String,
    },
    methods: {
      enable: function () {
        return getDocEnable();
      }
    }
  };
  </script>
  <style scoped>
  .el-alert--success.is-light {
    margin-bottom: 10px;
  }
  </style>