perf: 优化选项卡选择组件提示

This commit is contained in:
fit2cloud-chenyw 2022-05-31 23:15:16 +08:00
parent 4ee6d86251
commit aa5d4cf0e2
4 changed files with 12 additions and 5 deletions

View File

@ -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]

View File

@ -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'

View File

@ -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直接緩存所有頁面。詳情見'

View File

@ -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直接缓存所有页面。详情见'