diff --git a/src/renderer/src/views/model/index.vue b/src/renderer/src/views/model/index.vue index 5fc5260..f869bee 100644 --- a/src/renderer/src/views/model/index.vue +++ b/src/renderer/src/views/model/index.vue @@ -63,7 +63,7 @@ <div class="content-body-right-body"> <div class="content-body-right-item" v-for="(item,index) in tools" :key="index" @click="gotoRoute(item)"> <div class="content-body-right-item-img"> - <img v-if="item.suffix" :src="`/icon/${item.img}.${item.suffix}`" /> + <img v-if="item.suffix" :src="getStaticUrl(`/icon/${item.img}.${item.suffix}`)" /> <FileImage v-else :fileName="item.img"/> </div> <div class="content-body-right-item-text">{{item.name}}</div> @@ -93,7 +93,7 @@ import { dataSetJson } from '@/utils/comm' // 数据集id文生图 import { sessionStore } from '@/utils/store' import {listEntpcourse} from "@/api/teaching/classwork"; import {addEntpcoursefileReturnId, getEntpcoursefile} from "@/api/education/entpcoursefile"; -import {createWindow, toLinkLeftWeb} from "@/utils/tool"; +import {createWindow, toLinkLeftWeb, getStaticUrl} from "@/utils/tool"; import {ElMessage} from "element-plus"; import {PPTXFileToJson} from "@/AixPPTist/src/hooks/useImport"; import * as API_entpcoursefile from "@/api/education/entpcoursefile";