|
@@ -38,11 +38,11 @@ export default function () {
|
|
* @param config ExtJS配置对象
|
|
* @param config ExtJS配置对象
|
|
*/
|
|
*/
|
|
addScope(scopeInstance, config) {
|
|
addScope(scopeInstance, config) {
|
|
- if (scopeInstance.path) {
|
|
|
|
|
|
+ if (config.path) {
|
|
for (let i = 0; i < this.items.items.length; i++) {
|
|
for (let i = 0; i < this.items.items.length; i++) {
|
|
// 找到当前 tabs 里有没有已经打开过
|
|
// 找到当前 tabs 里有没有已经打开过
|
|
const tab = this.items.items[i]
|
|
const tab = this.items.items[i]
|
|
- if (_.isEqual(tab.uuid, scopeInstance.path)) {
|
|
|
|
|
|
+ if (_.isEqual(tab.path, config.path)) {
|
|
// 激活
|
|
// 激活
|
|
this.setActiveTab(tab);
|
|
this.setActiveTab(tab);
|
|
return
|
|
return
|
|
@@ -52,7 +52,6 @@ export default function () {
|
|
|
|
|
|
// 添加业务模块
|
|
// 添加业务模块
|
|
this.add({
|
|
this.add({
|
|
- uuid: scopeInstance.path,
|
|
|
|
closable: true,
|
|
closable: true,
|
|
...config,
|
|
...config,
|
|
})
|
|
})
|