소스 검색

small fix

Michael Wang 3 년 전
부모
커밋
9eb727a6a1
3개의 변경된 파일3개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 0
      src/features/OnlineExam/ExamEnd/ExamEnd.vue
  2. 1 1
      src/features/OnlineExam/OnlineExamOverview/OnlineExamOverview.vue
  3. 1 0
      vite.config.ts

+ 1 - 0
src/features/OnlineExam/ExamEnd/ExamEnd.vue

@@ -177,6 +177,7 @@ onUnmounted(() => {
 .container {
   margin: 0 auto;
   width: 80vw;
+  max-width: 800px;
   overflow: auto;
 }
 

+ 1 - 1
src/features/OnlineExam/OnlineExamOverview/OnlineExamOverview.vue

@@ -79,7 +79,7 @@ onMounted(async () => {
     beforeExamRemark = exam.data.BEFORE_EXAM_REMARK || "";
 
     if (examRecordDataId) {
-      startInfo = { courseName };
+      startInfo = { courseName: decodeURIComponent(courseName) };
     } else {
       const timestamp = Date.now();
       const res = await httpApp.post<{

+ 1 - 0
vite.config.ts

@@ -11,6 +11,7 @@ const path = require("path");
 
 // https://vitejs.dev/config/
 export default defineConfig({
+  base: "/oe-web/",
   plugins: [
     vue({ reactivityTransform: true }),
     vueJsx({}),