fuliqi
2024-07-08 8296816e95bc4c4cba378d2e4bc4d0e1d2d14f90
发版环境
11个文件已修改
3个文件已添加
1个文件已删除
106 ■■■■ 已修改文件
.env.production 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
components.d.ts 3 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/api/modules/educationResource.js 补丁 | 查看 | 原始文档 | blame | 历史
src/api/modules/subject.js 补丁 | 查看 | 原始文档 | blame | 历史
src/components/ExamInfo/index.vue 4 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/components/PDFVIewer/index.vue 41 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/store/modules/exam.js 6 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/exam-list/data-list/index.vue 4 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/exam/index.vue 6 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/folder/index.vue 12 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/meet/index.vue 8 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/resource/index.vue 补丁 | 查看 | 原始文档 | blame | 历史
src/views/train/data-list/index.vue 12 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
vite.config.electron.js 4 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
vite.config.js 4 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
.env.production
@@ -1 +1 @@
VITE_BASE_API_URL = '';
VITE_BASE_API_URL =
components.d.ts
@@ -26,15 +26,12 @@
    ElSlider: typeof import('element-plus/es')['ElSlider']
    ElTable: typeof import('element-plus/es')['ElTable']
    ElTableColumn: typeof import('element-plus/es')['ElTableColumn']
    ElTabPane: typeof import('element-plus/es')['ElTabPane']
    ElTabs: typeof import('element-plus/es')['ElTabs']
    ElTag: typeof import('element-plus/es')['ElTag']
    ExamAudio: typeof import('./src/components/ExamAudio/index.vue')['default']
    ExamInfo: typeof import('./src/components/ExamInfo/index.vue')['default']
    ExamInfoDialog: typeof import('./src/components/ExamInfoDialog/index.vue')['default']
    NormalHeader: typeof import('./src/components/NormalHeader/index.vue')['default']
    PDFViewer: typeof import('./src/components/PDFViewer/index.vue')['default']
    PDFVIewer: typeof import('./src/components/PDFVIewer/index.vue')['default']
    RouterLink: typeof import('vue-router')['RouterLink']
    RouterView: typeof import('vue-router')['RouterView']
    VideoViewer: typeof import('./src/components/VideoViewer/index.vue')['default']
src/api/modules/educationResource.js
src/api/modules/subject.js
src/components/ExamInfo/index.vue
@@ -4,7 +4,7 @@
    </div>
    <div class="audio-container" v-if="activeQuestion.audioFile">
      <ExamAudio :audioSrc="activeQuestion.audioFile"></ExamAudio>
      <ExamAudio :audioSrc="'/api/files/' +activeQuestion.audioFile"></ExamAudio>
    </div>
    <div class="img-container flex" v-if="activeQuestion.img">
@@ -41,4 +41,4 @@
  }
}
</style>
</style>
src/components/PDFVIewer/index.vue
File was deleted
src/store/modules/exam.js
@@ -3,7 +3,7 @@
export const useExamStore = defineStore('exam', () => {
  const examInfo = ref(null);
  const examDetail = ref([]);
  const examType = ref({
    1: '单选题',
    2: '多选题',
@@ -69,10 +69,10 @@
    answerProgress.value = progress;
  };
  const initExam = () => {
  const initExam = (questionType) => {
    answerProgress.value = 0;
    currentIndex.value = 0;
    currentType.value = 1;
    currentType.value = questionType;
  }
src/views/exam-list/data-list/index.vue
@@ -88,7 +88,7 @@
      suggestTime: res.data.suggestTime,
    });
    examStore.setExamDetail(res.data.titleList);
    examStore.initExam();
    examStore.initExam(res.data.titleList[0].questionType);
    router.push('/exam');
  }).catch(err => {
@@ -106,4 +106,4 @@
.bottom-item {
  margin-right: 30px;
}
</style>
</style>
src/views/exam/index.vue
@@ -177,7 +177,7 @@
const timeDialog = ref(false);
const { status, message, error, connect, disconnect, sendMessage } = useWebScoket({
  url: 'ws://192.168.3.64:8000/websocket/' + userInfo.value.id,
  url: 'wss://42.193.1.25:8000/websocket/' + userInfo.value.id,
  heartBeatData: 'ping'
});
@@ -263,7 +263,7 @@
  resetAllDialog();
  disconnect();
  submitExam(temp).then(res => {
    returnBack();
  }).catch(() => {
@@ -361,4 +361,4 @@
  background-color: rgba($color: #3680fa, $alpha: 0.2);
  margin-bottom: 20px;
}
</style>
</style>
src/views/folder/index.vue
@@ -42,7 +42,7 @@
              </div>
              <div class="card-footer flex justify-center mb-7 shrink-0">
                <el-pagination background layout="prev, pager, next" :total="fileList.length"
                <el-pagination background layout="prev, pager, next" :total="fileList.length"
                :default-page-size="20"
                :currentPage="currentIndex"
                :hide-on-single-page="true"
@@ -107,7 +107,7 @@
const userStore = useUserStore();
const { userInfo } = storeToRefs(userStore);
const { status, message, error, connect, disconnect, sendMessage } = useWebScoket({
  url: 'ws://192.168.3.64:8000/websocket/' + userInfo.value.id,
  url: 'wss://42.193.1.25:8000/websocket/' + userInfo.value.id,
  heartBeatData: 'ping'
});
@@ -120,7 +120,7 @@
    handle: (item) => {
      console.log(item);
      imageViewer.value = true;
      imageList.value = [item.contentUrl.url];
      imageList.value = ['/api/files/'+item.contentUrl.url];
      resendMessage();
    }
  },
@@ -129,7 +129,7 @@
    handle: (item) => {
      console.log(item);
      videoViewer.value = true;
      videoUrl.value = [item.contentUrl.url];
      videoUrl.value = ['/api/files/'+item.contentUrl.url];
      resendMessage();
    }
  },
@@ -138,7 +138,7 @@
    handle: (item) => {
      console.log(item);
      pdfViewer.value = true;
      pdfFile.value = item.contentUrl.url;
      pdfFile.value = '/api/files/'+item.contentUrl.url;
      resendMessage();
    }
  },
@@ -278,4 +278,4 @@
    }
  }
}
</style>
</style>
src/views/meet/index.vue
@@ -27,7 +27,7 @@
        enabled: false
      },
      whiteboard: {
        enabled: true
        enabled: false
      }
    },
    userInfo: {
@@ -36,12 +36,12 @@
  };
  jitsiApi = new JitsiMeetExternalAPI(domain, options);
  jitsiInit();
});
const jitsiInit = () => {
  jitsiApi.addListener('readyToClose', () => {
  });
}
@@ -49,4 +49,4 @@
</script>
<style lang="scss" scoped></style>
<style lang="scss" scoped></style>
src/views/resource/index.vue
src/views/train/data-list/index.vue
@@ -34,12 +34,10 @@
</template>
<script setup>
import { ref } from 'vue';
import { Timer } from '@element-plus/icons-vue';
import { storeToRefs } from 'pinia';
import { useRouter } from 'vue-router';
import { useUserStore } from '@/store/index.js';
import { classMeet } from '@/api/modules/meet.js';
import {storeToRefs} from 'pinia';
import {useRouter} from 'vue-router';
import {useUserStore} from '@/store/index.js';
import {classMeet} from '@/api/modules/meet.js';
const userStore = useUserStore();
const { userInfo } = storeToRefs(userStore);
@@ -92,4 +90,4 @@
.list-card {
  border-radius: 10px;
}
</style>
</style>
vite.config.electron.js
@@ -35,12 +35,12 @@
        proxy: {
            '/api': {
                // target: 'http://192.168.3.88:8000',
                target: 'http://192.168.3.64:8000',
                target: 'localhost:8000',
                changeOrigin: true,
            }
        }
    },
    resolve: {
        alias: {
            '@': resolve(__dirname, './src')
vite.config.js
@@ -30,12 +30,12 @@
        proxy: {
            '/api': {
                // target: 'http://192.168.3.88:8000',
                target: 'http://192.168.3.64:8000',
                target: 'http://localhost:8000',
                changeOrigin: true,
            }
        }
    },
    resolve: {
        alias: {
            '@': resolve(__dirname, './src')