Unverified 提交 073a73f1 authored 作者: fit2cloud-chenyw's avatar fit2cloud-chenyw 提交者: GitHub

Merge pull request #2375 from dataease/pr@dev@perf_detabs

perf: 优化选项卡选择组件提示
...@@ -333,13 +333,17 @@ export default { ...@@ -333,13 +333,17 @@ export default {
this.styleChange() this.styleChange()
} }
}) })
}
this.otherComponentDialogVisible = false this.otherComponentDialogVisible = false
return
}
this.$warning(this.$t('detabs.please') + this.$t('detabs.selectOthers'))
}, },
sureViewSelector() { sureViewSelector() {
const nodes = this.$refs.viewSelect.getCurrentSelected() const nodes = this.$refs.viewSelect.getCurrentSelected()
if (!nodes || nodes.length === 0) { if (!nodes || nodes.length === 0) {
this.viewDialogVisible = false this.$warning(this.$t('detabs.please') + this.$t('detabs.selectview'))
return return
} }
const node = nodes[0] const node = nodes[0]
......
...@@ -416,7 +416,8 @@ export default { ...@@ -416,7 +416,8 @@ export default {
eidttitle: 'Edit Title', eidttitle: 'Edit Title',
selectview: 'Select View', selectview: 'Select View',
selectOthers: 'Select Others', selectOthers: 'Select Others',
availableComponents: 'Available Components' availableComponents: 'Available Components',
please: 'Please'
}, },
example: { 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' 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 { ...@@ -416,7 +416,8 @@ export default {
eidttitle: '編輯標題', eidttitle: '編輯標題',
selectview: '選擇視圖', selectview: '選擇視圖',
selectOthers: '選擇組件', selectOthers: '選擇組件',
availableComponents: '可選組件' availableComponents: '可選組件',
please: '未'
}, },
example: { example: {
warning: '創建和編輯頁面是不能被 keep-alive 緩存的,因爲keep-alive 的 include 目前不支持根據路由來緩存,所以目前都是基於 component name 來進行緩存的。如果妳想類似的實現緩存效果,可以使用 localStorage 等瀏覽器緩存方案。或者不要使用 keep-alive 的 include,直接緩存所有頁面。詳情見' warning: '創建和編輯頁面是不能被 keep-alive 緩存的,因爲keep-alive 的 include 目前不支持根據路由來緩存,所以目前都是基於 component name 來進行緩存的。如果妳想類似的實現緩存效果,可以使用 localStorage 等瀏覽器緩存方案。或者不要使用 keep-alive 的 include,直接緩存所有頁面。詳情見'
......
...@@ -417,7 +417,8 @@ export default { ...@@ -417,7 +417,8 @@ export default {
eidttitle: '编辑标题', eidttitle: '编辑标题',
selectview: '选择视图', selectview: '选择视图',
selectOthers: '选择组件', selectOthers: '选择组件',
availableComponents: '可选组件' availableComponents: '可选组件',
please: '未'
}, },
example: { example: {
warning: '创建和编辑页面是不能被 keep-alive 缓存的,因为keep-alive 的 include 目前不支持根据路由来缓存,所以目前都是基于 component name 来进行缓存的。如果你想类似的实现缓存效果,可以使用 localStorage 等浏览器缓存方案。或者不要使用 keep-alive 的 include,直接缓存所有页面。详情见' warning: '创建和编辑页面是不能被 keep-alive 缓存的,因为keep-alive 的 include 目前不支持根据路由来缓存,所以目前都是基于 component name 来进行缓存的。如果你想类似的实现缓存效果,可以使用 localStorage 等浏览器缓存方案。或者不要使用 keep-alive 的 include,直接缓存所有页面。详情见'
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论