if (window.performance.navigation.type === 1) {
// 刷新加载 通过判断folderId参数来进入folderId文件夹
let { query } = this.$route
const { folder_id: folderId } = query
this.state.bIsAll = !folderId
this.actions.enterFolder({
item: { id: query?.folderId }
})
} else {
// 首次加载
this.actions.getList({ refresh: true })
}
js监听当前是否刷新
最新推荐文章于 2024-08-08 17:16:54 发布