mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/fe-student.git
synced 2025-12-12 12:26:49 +08:00
fix:讨论图片显示
This commit is contained in:
1
.env
1
.env
@@ -3,6 +3,7 @@ VITE_BASE_H5=/fe-student-h5
|
|||||||
VITE_BASE_API=
|
VITE_BASE_API=
|
||||||
VITE_OUTPUT_DIR=./dist
|
VITE_OUTPUT_DIR=./dist
|
||||||
VITE_FILE_PATH=/upload/
|
VITE_FILE_PATH=/upload/
|
||||||
|
VITE_FILE_PATH_AVATAR=/upload
|
||||||
VITE_BASE_LOGIN_URL=//u-pre.boe.com/web/
|
VITE_BASE_LOGIN_URL=//u-pre.boe.com/web/
|
||||||
VITE_PROXY_URL=http://43.143.139.204/manageApi
|
VITE_PROXY_URL=http://43.143.139.204/manageApi
|
||||||
|
|
||||||
|
|||||||
@@ -118,7 +118,7 @@
|
|||||||
<div
|
<div
|
||||||
class="imgone"
|
class="imgone"
|
||||||
:style="{
|
:style="{
|
||||||
backgroundImage: `url('${img.url}')`,
|
backgroundImage: `url('${fielPath}${img.url}')`,
|
||||||
marginLeft: '15px',
|
marginLeft: '15px',
|
||||||
}"
|
}"
|
||||||
></div>
|
></div>
|
||||||
@@ -156,7 +156,7 @@
|
|||||||
</div>
|
</div>
|
||||||
<div style="display:flex;margin-top: 12px;margin-bottom: 12px;">
|
<div style="display:flex;margin-top: 12px;margin-bottom: 12px;">
|
||||||
<div v-if="row.img" v-for="(rowimg, index) in row.img.split(',')" :key="index" style="width:55px;height:55px;margin-right: 12px;">
|
<div v-if="row.img" v-for="(rowimg, index) in row.img.split(',')" :key="index" style="width:55px;height:55px;margin-right: 12px;">
|
||||||
<img class="image" style="width:55px;height:55px;border-radius: 4px;" :src="rowimg" />
|
<img class="image" style="width:55px;height:55px;border-radius: 4px;" :src="fielPath+rowimg" />
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="intime">{{ row.ctime }}</div>
|
<div class="intime">{{ row.ctime }}</div>
|
||||||
@@ -193,7 +193,7 @@
|
|||||||
</div>
|
</div>
|
||||||
<div style="display:flex;margin-top: 12px;margin-bottom: 12px;">
|
<div style="display:flex;margin-top: 12px;margin-bottom: 12px;">
|
||||||
<div v-if="replay.img" v-for="(rowimg, index) in replay.img.split(',')" :key="index" style="width:65px;height:65px;margin-right: 7px;">
|
<div v-if="replay.img" v-for="(rowimg, index) in replay.img.split(',')" :key="index" style="width:65px;height:65px;margin-right: 7px;">
|
||||||
<img class="image" style="width:65px;height:65px;border-radius: 4px;" :src="rowimg" />
|
<img class="image" style="width:65px;height:65px;border-radius: 4px;" :src="fielPath+rowimg" />
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="mainreply">
|
<div class="mainreply">
|
||||||
@@ -263,7 +263,7 @@
|
|||||||
<div
|
<div
|
||||||
class="imgone"
|
class="imgone"
|
||||||
:style="{
|
:style="{
|
||||||
backgroundImage: `url('${img.url}')`,
|
backgroundImage: `url('${fielPath}${img.url}')`,
|
||||||
marginLeft: '15px',
|
marginLeft: '15px',
|
||||||
}"
|
}"
|
||||||
></div>
|
></div>
|
||||||
@@ -324,6 +324,7 @@ import UploadPostImg from "@/components/img/UploadPostImg.vue";
|
|||||||
|
|
||||||
const router = useRouter();
|
const router = useRouter();
|
||||||
const refInput =ref()
|
const refInput =ref()
|
||||||
|
const fielPath = ref(import.meta.env.VITE_FILE_PATH_AVATAR);
|
||||||
const getFocus = () => {
|
const getFocus = () => {
|
||||||
refInput.value.focus()
|
refInput.value.focus()
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user