forked from github/dataease
Merge pull request #7493 from dataease/pr@dev@refactor_request
refactor: 优化从编辑画布界面返回时,清理缓存数据,防止不必要加载
This commit is contained in:
commit
47bb8c2d10
@ -372,6 +372,7 @@ export default {
|
||||
// 关闭页面清理缓存
|
||||
this.$store.commit('initCanvasBase')
|
||||
this.$store.commit('setInEditorStatus', false)
|
||||
this.$store.commit('setComponentData', [])
|
||||
this.$emit('close-left-panel')
|
||||
removePanelCache(this.panelInfo.id)
|
||||
this.$nextTick(() => {
|
||||
|
@ -105,7 +105,7 @@ service.interceptors.response.use(response => {
|
||||
return response.data
|
||||
}, error => {
|
||||
const config = error.response && error.response.config || error.config
|
||||
const headers = error.response && error.response.headers || error.response || config.headers
|
||||
const headers = error.response && error.response.headers || error.response || config && config.headers
|
||||
config.loading && tryHideLoading(store.getters.currentPath)
|
||||
|
||||
let msg = ''
|
||||
|
Loading…
Reference in New Issue
Block a user