From 90f1fdee9b17109f9d8fa2dbbded61b9cd721488 Mon Sep 17 00:00:00 2001 From: lixg Date: Fri, 10 Mar 2023 17:03:41 +0800 Subject: [PATCH] =?UTF-8?q?feat:=E4=BF=AE=E6=94=B9=E8=B7=B3=E8=BD=AC?= =?UTF-8?q?=E5=8F=8A=E6=8C=89=E9=92=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/App.vue | 2 +- src/components/ReturnHead.vue | 8 ++++++-- src/views/discuss/DiscussUpload.vue | 3 +++ src/views/faceteach/FaceTeach.vue | 12 ++++++++++-- src/views/faceteach/FaceTeachNoCommon.vue | 10 +++++++++- src/views/faceteach/FaceTeachNoCourse.vue | 10 +++++++++- src/views/faceteach/FaceTeachSignUp.vue | 10 +++++++++- src/views/liveboradcast/LiveBoradcast.vue | 4 +++- src/views/pathmap/PathmapPage.vue | 11 ++++++----- src/views/projectdetails/projectDetails.vue | 12 +++++++----- vite.config.js | 2 +- 11 files changed, 64 insertions(+), 20 deletions(-) diff --git a/src/App.vue b/src/App.vue index e05685e..46e049b 100644 --- a/src/App.vue +++ b/src/App.vue @@ -27,7 +27,7 @@ import { GET_USER_INFO } from "@/api/ThirdApi"; import { getCookie } from "@/api/utils"; import { USER_INFO } from "@/api/api"; -console.log("版本2.1.0------------"); +console.log("版本1.4.6------------"); const store = useStore(); const router = useRouter(); diff --git a/src/components/ReturnHead.vue b/src/components/ReturnHead.vue index ef0d900..1479f79 100644 --- a/src/components/ReturnHead.vue +++ b/src/components/ReturnHead.vue @@ -2,7 +2,7 @@ * @Author: lixg lixg@dongwu-inc.com * @Date: 2023-01-16 17:26:39 * @LastEditors: lixg lixg@dongwu-inc.com - * @LastEditTime: 2023-03-09 18:35:30 + * @LastEditTime: 2023-03-10 15:20:30 * @FilePath: /stu_h5/src/components/ReturnHead.vue * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE --> @@ -99,7 +99,11 @@ export default { "_top" ); } else { - router.back(-1); + if (window.history.length <= 1) { + window.open(import.meta.env.VITE_BOE_STUDY, "_top"); + } else { + router.back(-1); + } } }; const publishClick = () => { diff --git a/src/views/discuss/DiscussUpload.vue b/src/views/discuss/DiscussUpload.vue index c82d7fc..f675866 100644 --- a/src/views/discuss/DiscussUpload.vue +++ b/src/views/discuss/DiscussUpload.vue @@ -168,6 +168,9 @@ onBeforeUnmount(() => { // 发表帖子发布操作 const postAdd = () => { console.log("用户信息", userInfo.value); + if (titleName.value == "") { + return ElMessage.warning("评论标题为空"); + } let obj = { collectionNum: 0, commentNum: 0, diff --git a/src/views/faceteach/FaceTeach.vue b/src/views/faceteach/FaceTeach.vue index de099fb..029e404 100644 --- a/src/views/faceteach/FaceTeach.vue +++ b/src/views/faceteach/FaceTeach.vue @@ -141,7 +141,14 @@
- +
{{ data.planDto?.teacher }}
@@ -384,7 +391,7 @@