Merge pull request #4768 from dataease/pr@dev@fix_panel-new-forld

fix(仪表板): 修复新用户创建第一个仪表板目录时需要刷新一下才出现的问题 #4767
This commit is contained in:
王嘉豪 2023-03-13 18:13:04 +08:00 committed by GitHub
commit b5608baf51
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -899,7 +899,7 @@ export default {
groupTree(this.groupForm, !userCache).then((res) => {
localStorage.setItem('panel-main-tree', JSON.stringify(res.data || []))
if (!userCache) {
this.tData = res.data
this.tData = res.data || []
}
if (this.responseSource === 'appApply') {
this.fromAppActive()