forked from github/dataease
Merge pull request #2375 from dataease/pr@dev@perf_detabs
perf: 优化选项卡选择组件提示
This commit is contained in:
commit
073a73f1e5
@ -333,13 +333,17 @@ export default {
|
||||
this.styleChange()
|
||||
}
|
||||
})
|
||||
this.otherComponentDialogVisible = false
|
||||
return
|
||||
}
|
||||
this.otherComponentDialogVisible = false
|
||||
this.$warning(this.$t('detabs.please') + this.$t('detabs.selectOthers'))
|
||||
|
||||
},
|
||||
sureViewSelector() {
|
||||
const nodes = this.$refs.viewSelect.getCurrentSelected()
|
||||
if (!nodes || nodes.length === 0) {
|
||||
this.viewDialogVisible = false
|
||||
this.$warning(this.$t('detabs.please') + this.$t('detabs.selectview'))
|
||||
|
||||
return
|
||||
}
|
||||
const node = nodes[0]
|
||||
|
@ -416,7 +416,8 @@ export default {
|
||||
eidttitle: 'Edit Title',
|
||||
selectview: 'Select View',
|
||||
selectOthers: 'Select Others',
|
||||
availableComponents: 'Available Components'
|
||||
availableComponents: 'Available Components',
|
||||
please: 'Please'
|
||||
},
|
||||
example: {
|
||||
warning: 'Creating and editing pages cannot be cached by keep-alive because keep-alive include does not currently support caching based on routes, so it is currently cached based on component name. If you want to achieve a similar caching effect, you can use a browser caching scheme such as localStorage. Or do not use keep-alive include to cache all pages directly. See details'
|
||||
|
@ -416,7 +416,8 @@ export default {
|
||||
eidttitle: '編輯標題',
|
||||
selectview: '選擇視圖',
|
||||
selectOthers: '選擇組件',
|
||||
availableComponents: '可選組件'
|
||||
availableComponents: '可選組件',
|
||||
please: '未'
|
||||
},
|
||||
example: {
|
||||
warning: '創建和編輯頁面是不能被 keep-alive 緩存的,因爲keep-alive 的 include 目前不支持根據路由來緩存,所以目前都是基於 component name 來進行緩存的。如果妳想類似的實現緩存效果,可以使用 localStorage 等瀏覽器緩存方案。或者不要使用 keep-alive 的 include,直接緩存所有頁面。詳情見'
|
||||
|
@ -417,7 +417,8 @@ export default {
|
||||
eidttitle: '编辑标题',
|
||||
selectview: '选择视图',
|
||||
selectOthers: '选择组件',
|
||||
availableComponents: '可选组件'
|
||||
availableComponents: '可选组件',
|
||||
please: '未'
|
||||
},
|
||||
example: {
|
||||
warning: '创建和编辑页面是不能被 keep-alive 缓存的,因为keep-alive 的 include 目前不支持根据路由来缓存,所以目前都是基于 component name 来进行缓存的。如果你想类似的实现缓存效果,可以使用 localStorage 等浏览器缓存方案。或者不要使用 keep-alive 的 include,直接缓存所有页面。详情见'
|
||||
|
Loading…
Reference in New Issue
Block a user