feat:修改跳转及按钮

This commit is contained in:
lixg
2023-03-10 17:03:41 +08:00
parent d555d87919
commit 90f1fdee9b
11 changed files with 64 additions and 20 deletions

View File

@@ -141,7 +141,14 @@
<div class="box" style="width: 80px; right: 0px"></div>
</div>
<div class="teachermain">
<img class="teacherAvatar" :src="teacherInfo.avatar" />
<img
class="teacherAvatar"
:src="
teacherInfo?.avatar?.includes('upload')
? teacherInfo?.avatar
: fielPath + teacherInfo?.avatar
"
/>
<div style="flex: 1; margin-left: 11px; margin-right: 13px">
<div class="teacherName">{{ data.planDto?.teacher }}</div>
<div class="teacherIntro">
@@ -384,7 +391,7 @@
<script setup>
import TitleHead from "@/components/TitleHead.vue";
import ReturnHead from "@/components/ReturnHead.vue";
import { computed, reactive, toRefs, watch, onUnmounted } from "vue";
import { computed, reactive, toRefs, watch, onUnmounted, ref } from "vue";
import FileTypeImg from "@/components/FileTypeImg.vue";
import { request, useRequest } from "@/api/request";
import {
@@ -398,6 +405,7 @@ import { useUserInfo } from "@/api/utils";
import { ElMessage, messageConfig } from "element-plus";
import dayjs from "dayjs";
import { changeTime } from "@/api/method";
const fielPath = ref(import.meta.env.VITE_FILE_PATH);
const router = useRouter();
const returnclick = () => {
router.back();