学习记录拿用户id

develoop
wenyu441069198 4 months ago
parent efc569df5d
commit f13728da3c
  1. 12712
      pnpm-lock.yaml
  2. 11
      src/views/MyCourseStudy/learningProcess.vue

File diff suppressed because it is too large Load Diff

@ -4,19 +4,26 @@ import { ref } from 'vue'
import { ElMessageBox, ElMessage } from 'element-plus'
import { useRouter } from 'vue-router'
import useUserStore from '@/store/modules/user'
import { onMounted } from 'vue'
//
import { LearningRecordsControllerService } from '../../../generated/services/LearningRecordsControllerService'
const total = ref(0)
const userStore = useUserStore()
const recordList = ref([])
const selectedIds = ref([])
const loading = ref(false)
const showCheckbox = ref(false)
onMounted(()=>{
userStore.getUserInfo()
})
const params = ref({
// pagesize: '10',
// pagenum: '1',
userId: '1',
userId: userStore.data.id,
})
console.log(userStore.data.id);
//
const getrecordList = async () => {
//console.log(1111111)

Loading…
Cancel
Save