style: $nextTick promise 形式使用
This commit is contained in:
@@ -82,14 +82,16 @@ export default {
|
||||
})
|
||||
},
|
||||
// 清空当前页缓存并刷新此页面
|
||||
handleCleanCacheAndRefreshCurrent () {
|
||||
async handleCleanCacheAndRefreshCurrent () {
|
||||
this.keepAliveRemove(this.$route.fullPath)
|
||||
this.$nextTick(() => this.$router.replace('/refresh'))
|
||||
await this.$nextTick()
|
||||
this.$router.replace('/refresh')
|
||||
},
|
||||
// 清空所有的缓存并刷新此页面
|
||||
handleCleanCacheAndRefreshAll () {
|
||||
async handleCleanCacheAndRefreshAll () {
|
||||
this.keepAliveClean()
|
||||
this.$nextTick(() => this.$router.replace('/refresh'))
|
||||
await this.$nextTick()
|
||||
this.$router.replace('/refresh')
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user