We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b66d7a4 commit 7707d4cCopy full SHA for 7707d4c
web/src/components/chooseImg/index.vue
@@ -3,7 +3,7 @@
3
<div style="display:flex;justify-content:space-around;flex-wrap:wrap;padding-top:40px">
4
<el-image
5
class="header-img-box-list"
6
- :src="item.url"
+ :src="(item.url && item.url.slice(0, 4) !== 'http')?path+item.url:item.url"
7
v-for="(item,key) in picList"
8
:key="key"
9
@click.native="chooseImg(item.url,target,targetKey)"
@@ -17,6 +17,7 @@
17
</template>
18
19
<script>
20
+const path = process.env.VUE_APP_BASE_API
21
import { getFileList } from "@/api/fileUploadAndDownload";
22
export default {
23
props: {
@@ -26,7 +27,8 @@ export default {
26
27
data() {
28
return {
29
drawer: false,
- picList: []
30
+ picList: [],
31
+ path:path
32
};
33
},
34
methods: {
0 commit comments