1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
| <template>
| <img :src="url" alt="" />
| </template>
|
| <script>
| export default {
| props: {
| src: {},
| },
| computed: {
| url() {
| if (this.src.indexOf("http://apps.smartai.com/httpImage/") === -1) {
| return "httpImage" + this.src;
| } else {
| return this.src;
| }
| },
| },
| };
| </script>
|
| <style>
| </style>
|
|