Blame view

yudao-ui-admin/src/components/DocAlert/index.vue 613 Bytes
efe42001   YunaiV   开发环境下,管理后台每个菜单展示对...
1
  <template>
ca8bb724   YunaiV   版本 1.7.0 发布:增加微信公...
2
3
4
5
6
    <el-alert v-if="enable()" type="success" show-icon>
      <template slot="title">
        <div @click="goToUrl">{{ '【' + title + '】文档地址:' + url }}</div>
      </template>
    </el-alert>
efe42001   YunaiV   开发环境下,管理后台每个菜单展示对...
7
8
9
10
11
12
13
14
15
16
17
18
19
20
  </template>
  
  <script>
  import {getDocEnable} from "@/utils/ruoyi";
  
  export default {
    name: "DocAlert",
    props: {
      title: String,
      url: String,
    },
    methods: {
      enable: function () {
        return getDocEnable();
ca8bb724   YunaiV   版本 1.7.0 发布:增加微信公...
21
22
23
      },
      goToUrl: function() {
        window.open(this.url);
efe42001   YunaiV   开发环境下,管理后台每个菜单展示对...
24
25
26
27
28
29
30
      }
    }
  };
  </script>
  <style scoped>
  .el-alert--success.is-light {
    margin-bottom: 10px;
53767614   YunaiV   增加商城的提示
31
    cursor: pointer;
efe42001   YunaiV   开发环境下,管理后台每个菜单展示对...
32
33
  }
  </style>