提交 9a88fe27 authored 作者: 王鹏飞's avatar 王鹏飞

chore: update

上级 9a568c63
......@@ -29,6 +29,7 @@
"@rushstack/eslint-patch": "^1.1.0",
"@types/ali-oss": "^6.16.4",
"@types/blueimp-md5": "^2.18.0",
"@types/file-saver": "^2.0.5",
"@types/node": "^16.11.56",
"@types/qs": "^6.9.7",
"@types/video.js": "^7.3.46",
......@@ -362,6 +363,12 @@
"integrity": "sha512-f4A+++lGZGJvVSgeyMkqA7BEf2BVQli6F+qEykKb49c5ieWQBkfpn6CP5c1IZr2Yi2Ofl6Fj+v0e1fN18Z8Cnw==",
"dev": true
},
"node_modules/@types/file-saver": {
"version": "2.0.5",
"resolved": "https://registry.npmmirror.com/@types/file-saver/-/file-saver-2.0.5.tgz",
"integrity": "sha512-zv9kNf3keYegP5oThGLaPk8E081DFDuwfqjtiTzm6PoxChdJ1raSuADf2YGCVIyrSynLrgc8JWv296s7Q7pQSQ==",
"dev": true
},
"node_modules/@types/json-schema": {
"version": "7.0.11",
"resolved": "https://registry.npmmirror.com/@types/json-schema/-/json-schema-7.0.11.tgz",
......@@ -5024,6 +5031,12 @@
"integrity": "sha512-f4A+++lGZGJvVSgeyMkqA7BEf2BVQli6F+qEykKb49c5ieWQBkfpn6CP5c1IZr2Yi2Ofl6Fj+v0e1fN18Z8Cnw==",
"dev": true
},
"@types/file-saver": {
"version": "2.0.5",
"resolved": "https://registry.npmmirror.com/@types/file-saver/-/file-saver-2.0.5.tgz",
"integrity": "sha512-zv9kNf3keYegP5oThGLaPk8E081DFDuwfqjtiTzm6PoxChdJ1raSuADf2YGCVIyrSynLrgc8JWv296s7Q7pQSQ==",
"dev": true
},
"@types/json-schema": {
"version": "7.0.11",
"resolved": "https://registry.npmmirror.com/@types/json-schema/-/json-schema-7.0.11.tgz",
......
......@@ -33,6 +33,7 @@
"@rushstack/eslint-patch": "^1.1.0",
"@types/ali-oss": "^6.16.4",
"@types/blueimp-md5": "^2.18.0",
"@types/file-saver": "^2.0.5",
"@types/node": "^16.11.56",
"@types/qs": "^6.9.7",
"@types/video.js": "^7.3.46",
......
......@@ -179,7 +179,6 @@ defineExpose({ refetch, tableRef })
:data="dataList"
v-loading="loading"
v-bind="$attrs"
style="height: 100%"
ref="tableRef"
>
<el-table-column align="center" v-bind="item || {}" v-for="item in columns" :key="item.prop">
......
......@@ -11,9 +11,10 @@ const store = useUserStore()
const courses = ref<CourseType[]>([])
export function useGetCourseList() {
!courses.value.length &&
getExperimentCourseList({ organ_id: store.organization?.id }).then((res: any) => {
if (!courses.value.length && store.organization?.id) {
getExperimentCourseList({ organ_id: store.organization.id }).then((res: any) => {
courses.value = res.data
})
}
return { courses }
}
......@@ -11,9 +11,10 @@ const store = useUserStore()
const teachers = ref<TeacherType[]>([])
export function useGetTeacherList() {
!teachers.value.length &&
getExperimentTeacherList({ organ_id: store.organization?.id }).then((res: any) => {
if (!teachers.value.length && store.organization?.id) {
getExperimentTeacherList({ organ_id: store.organization.id }).then((res: any) => {
teachers.value = res.data
})
}
return { teachers }
}
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论