From 46904b36c5744fbaba4ec23bdd2afd2d159a63a2 Mon Sep 17 00:00:00 2001 From: significative <163999932+significative@users.noreply.github.com> Date: Tue, 10 Sep 2024 16:01:32 +0800 Subject: [PATCH] prof --- .../src/store/module/user.ts | 2 +- .../src/views/course/index.vue | 2 +- .../src/views/home/index.vue | 2 +- .../src/views/professionalListProfile/index.vue | 12 ++++++------ 4 files changed, 9 insertions(+), 9 deletions(-) diff --git a/teaching_integration_platform_template/src/store/module/user.ts b/teaching_integration_platform_template/src/store/module/user.ts index 98605e0..a22d5a1 100644 --- a/teaching_integration_platform_template/src/store/module/user.ts +++ b/teaching_integration_platform_template/src/store/module/user.ts @@ -4,7 +4,7 @@ import { ref, reactive } from 'vue' const userStore = defineStore('userStore', () => { const userInfo = reactive({}) const isLogin = ref(false) - const token = ref('eyJhbGciOiJIUzUxMiJ9.eyJzdWIiOiJ4aWFvMTExMSIsImNyZWF0ZWQiOjE3MjQ2NTQxNjMxMjIsImV4cCI6MTcyNTI1ODk2M30.uIEZhGG6-XGomV0aqpamOn54VxP4ItfM_ip9EgI0ohcYPyEnln6dXBoG8eVBNlbigglIjw5V1N5bHPdIAifeaA') + const token = ref('') userGetInfoService(token.value).then(res => { // @ts-ignore diff --git a/teaching_integration_platform_template/src/views/course/index.vue b/teaching_integration_platform_template/src/views/course/index.vue index 061bb87..a8baeb5 100644 --- a/teaching_integration_platform_template/src/views/course/index.vue +++ b/teaching_integration_platform_template/src/views/course/index.vue @@ -216,7 +216,7 @@ const getCourseChapterEvent = async () => { courseId: '2cd6b5b62c344fd0becff6010cba566e', }) chapterList.value = res.data - console.log(res) + console.log(res,'res') loading.value = true loadingInstance.close() } diff --git a/teaching_integration_platform_template/src/views/home/index.vue b/teaching_integration_platform_template/src/views/home/index.vue index 003b154..b619152 100644 --- a/teaching_integration_platform_template/src/views/home/index.vue +++ b/teaching_integration_platform_template/src/views/home/index.vue @@ -22,7 +22,7 @@
  • 总学时:10学时
  • 章节数:10章
  • 总学分:2.0分
  • -
  • 知识点总分:33个
  • +
  • 知识点总数:33个
  • diff --git a/teaching_integration_platform_template/src/views/professionalListProfile/index.vue b/teaching_integration_platform_template/src/views/professionalListProfile/index.vue index e3bb708..4ceeb6b 100644 --- a/teaching_integration_platform_template/src/views/professionalListProfile/index.vue +++ b/teaching_integration_platform_template/src/views/professionalListProfile/index.vue @@ -16,7 +16,7 @@ const params = ref({ pageNo: 1, pageSize: 7, // username: 'qiuqiu', - userId: userStore.userInfo.id, + userId: userStore.userInfo.id ?? 3, assessmenttype: '', category: '', nature: '', @@ -38,7 +38,7 @@ watch(() => userStore.userInfo.id, (newVal) => { onMounted(() => { - if (userStore.userInfo.id) getCourseList() + if (params.value.userId) getCourseList() }) const total = ref(0) const loading = ref(false) @@ -74,10 +74,10 @@ const onGetCourseObject = async (id: any) => { function toPath(item: any) { $router.push({ - path:'/roadbedRecommendation', - query:{ - isCourse:'true', - id:item.id + path: '/roadbedRecommendation', + query: { + isCourse: 'true', + id: item.id } })