| | |
| | | |
| | | const route = useRoute(); |
| | | const {proxy} = getCurrentInstance(); |
| | | |
| | | const imgBaseUrl = import.meta.env.VITE_APP_IMG_BASEURL //图片前缀 |
| | | |
| | | /** |
| | | * 搜索相关 |
| | |
| | | |
| | | //上传文件,添加图片地址信息 |
| | | const uploadData = (data) => { |
| | | form.value.headImg = data.newFileView |
| | | form.value.headImg = imgBaseUrl + data.newFileView |
| | | } |
| | | |
| | | /** 提交按钮 */ |
| | |
| | | > |
| | | <template #default="scope"> |
| | | <div v-if="key.toString() == 'headImg'"> |
| | | <img :src="scope.row.headImg" class="table-headImg"/> |
| | | <img :src="imgBaseUrl + scope.row.headImg" class="table-headImg" alt="" /> |
| | | </div> |
| | | </template> |
| | | </el-table-column> |