feat:更新图片存储路径

This commit is contained in:
2026-02-01 22:34:38 +08:00
parent c0cfbbaa15
commit 7b96e60b8d
17 changed files with 295 additions and 261 deletions

View File

@@ -12,13 +12,13 @@
<el-card class="record-card">
<span class="record-content">旅行人{{ item.persons.join('-') }}</span>
<el-image v-for="(image, index) in item.imageList" :key="index"
:src="serviceFileRootPath + image"
:preview-src-list="[serviceFileRootPath + image]"
:src="AListPath + image"
:preview-src-list="[AListPath + image]"
fit="contain" alt="暂无图片" class="record-image"/>
<video v-for="(video, index) in item.videoList"
:key="index" controls style="width: 60%;min-height: 200px;">
<source :src="serviceFileRootPath + video" type="video/mp4">
<source :src="AListPath + video" type="video/mp4">
您的浏览器不支持 HTML5 视频
</video>
@@ -41,7 +41,7 @@
<script setup lang="ts">
import { SvgIcon } from 'vue3-common'
import { useTravelStore } from '@/store/travel.ts'
import { serviceFileRootPath } from '@/utils'
import { AListPath } from '@/utils'
const travelStore = useTravelStore()
</script>

View File

@@ -3,7 +3,7 @@
<el-carousel v-if="props.travelItem?.recordList.length > 0"
arrow="always" @change="changeTravelEvent">
<el-carousel-item v-for="(item, index) in props.travelItem?.recordList" :key="index">
<el-image :src="serviceFileRootPath + item.imageList[0]"
<el-image :src="AListPath + item.imageList[0]"
fit="contain" alt="暂无图片">
<template #error>
<div class="image-slot">
@@ -70,7 +70,7 @@ import { useRouter } from 'vue-router'
import { formatDate } from 'vue3-common/utils/dateUtil'
import { ITravelSpot } from '@/types/travel.ts'
import { commonElMessageBox } from 'vue3-common/utils/elUtil'
import { serviceFileRootPath } from '@/utils'
import { AListPath } from '@/utils'
import { parsePerson } from '@/utils/home/travelUtil.ts'
const router = useRouter()