fix:课程中心返回接口未调用问题处理
This commit is contained in:
@@ -126,7 +126,8 @@ import {
|
||||
queryCrsInfoByPopularApi,
|
||||
queryCrsInfoByRecmdApi
|
||||
} from "@/api/course.js"
|
||||
import { onMounted, ref, computed } from 'vue'
|
||||
import { onMounted, onActivated, ref, computed } from 'vue'
|
||||
import { onShow } from "@dcloudio/uni-app"
|
||||
const customStyle = {
|
||||
backgroundColor: "#ffffff",
|
||||
paddingLeft: "40rpx",
|
||||
@@ -288,6 +289,9 @@ import { onMounted, ref, computed } from 'vue'
|
||||
})
|
||||
changeTab({name:'全部'})
|
||||
})
|
||||
onActivated(() => {
|
||||
changeTab({name:activeTab.value || '全部'})
|
||||
});
|
||||
</script>
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user