index.vue 445 Bytes
Newer Older
sunhongwei's avatar
sunhongwei committed
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>