diff --git a/src/App.vue b/src/App.vue index 5254b68..a285f4a 100644 --- a/src/App.vue +++ b/src/App.vue @@ -25,7 +25,7 @@ import { useStore } from "vuex"; import { boeRequest } from "@/api/request"; import { GET_USER_INFO } from "@/api/ThirdApi"; import { getCookie } from "@/api/utils"; - +console.log("版本1.2.0------------"); const store = useStore(); const router = useRouter(); diff --git a/src/views/faceteach/FaceTeach.vue b/src/views/faceteach/FaceTeach.vue index bb0ee61..667b12b 100644 --- a/src/views/faceteach/FaceTeach.vue +++ b/src/views/faceteach/FaceTeach.vue @@ -218,12 +218,7 @@ -
+
-
+
下载
下载 @@ -280,26 +278,21 @@ 作业
+
+ 交作业 +
- -
- 交作业 -
data.value?.planDto?.teacherId)); const state = reactive({ @@ -562,6 +552,7 @@ function toWork() { let date2 = new Date().getTime(); if (date1 > date2) { ElMessage.warning("未到开始时间,请耐心等待!"); + return; } } router.push({ @@ -584,6 +575,7 @@ function toExamItem(obj) { let date2 = new Date().getTime(); if (date1 > date2) { ElMessage.warning("未到开始时间,请耐心等待!"); + return; } } console.log("obj", obj.examinationTestId); diff --git a/src/views/homeworkpage/UploadWork.vue b/src/views/homeworkpage/UploadWork.vue index 375d4cb..f6ccf85 100644 --- a/src/views/homeworkpage/UploadWork.vue +++ b/src/views/homeworkpage/UploadWork.vue @@ -26,9 +26,12 @@
- - - + +
@@ -84,10 +87,16 @@ export default { // clearFiles(); }); }; + const deleteAll = () => { + console.log("点击"); + textarea.value = ""; + fileList.value = []; + }; return { ...toRefs(state), publishWork, textarea, + deleteAll, }; }, }; diff --git a/vue.config.js b/vue.config.js index c50d341..9126c49 100644 --- a/vue.config.js +++ b/vue.config.js @@ -8,6 +8,6 @@ */ const { defineConfig } = require('@vue/cli-service') module.exports = defineConfig({ - publicPath: "/student-h5", + publicPath: process.env.VITE_BASE, transpileDependencies: true })