Compare commits

...

2 Commits

Author SHA1 Message Date
yangws bf7f740aaf Merge pull request 'fix:无数据时处理;' (#159) from yangws into main
Reviewed-on: #159
2024-08-28 14:07:56 +08:00
yangws e6a0859f87 fix:无数据时处理; 2024-08-28 14:07:14 +08:00
2 changed files with 5 additions and 0 deletions

View File

@ -163,6 +163,10 @@ const handleNodeClick = (data,node) => {
onMounted(() => {
titleName.value = `${useStore.user.edustage}-${useStore.user.edusubject}`
treeLoading.value = true
//loading
setTimeout(() => {
treeLoading.value = false
},2000)
})
//
watch(() => useThird,() => {

View File

@ -34,6 +34,7 @@ const getSubject = (value) => {
const currentIndex = gradeList.findIndex(item => item.value === value)
getSubjects({stage:value}).then(res => {
if(res.code === 200){
if(res.data.length === 0) return
subjectList.value = res.data.map(item => {
return {
...item,