mirror of
https://github.com/iczer/vue-antd-admin
synced 2025-04-06 04:00:06 +08:00
Merge f5e2c11387d21fba5202207cc6db6d562c5ccbee into 10a7613e6e94f80041712201ef709d47d76c4b80
This commit is contained in:
commit
efee12bd3b
@ -136,13 +136,15 @@ export default {
|
||||
},
|
||||
refresh (key, page) {
|
||||
page = page || this.pageList.find(item => item.path === key)
|
||||
page.loading = true
|
||||
this.clearCache(page)
|
||||
if (key === this.activePage) {
|
||||
this.reloadContent(() => page.loading = false)
|
||||
} else {
|
||||
// 其实刷新很快,加这个延迟纯粹为了 loading 状态多展示一会儿,让用户感知刷新这一过程
|
||||
setTimeout(() => page.loading = false, 500)
|
||||
if(page){
|
||||
page.loading = true
|
||||
this.clearCache(page)
|
||||
if (key === this.activePage) {
|
||||
this.reloadContent(() => page.loading = false)
|
||||
} else {
|
||||
// 其实刷新很快,加这个延迟纯粹为了 loading 状态多展示一会儿,让用户感知刷新这一过程
|
||||
setTimeout(() => page.loading = false, 500)
|
||||
}
|
||||
}
|
||||
},
|
||||
onContextmenu(pageKey, e) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user