index.vue 445 B

12345678910111213141516171819202122232425
  1. <template>
  2. <el-alert v-if="enable()" :title="'【' + title + '】文档地址:' + url" type="success" show-icon />
  3. </template>
  4. <script>
  5. import {getDocEnable} from "@/utils/ruoyi";
  6. export default {
  7. name: "DocAlert",
  8. props: {
  9. title: String,
  10. url: String,
  11. },
  12. methods: {
  13. enable: function () {
  14. return getDocEnable();
  15. }
  16. }
  17. };
  18. </script>
  19. <style scoped>
  20. .el-alert--success.is-light {
  21. margin-bottom: 10px;
  22. }
  23. </style>