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 @@