|
@@ -79,12 +79,16 @@ export default {
|
|
|
methods: {
|
|
|
setactive(e) {
|
|
|
this.activeName = this.tabsList[e]?.code;
|
|
|
+ console.log(this.activeName);
|
|
|
this.handleClick(this.tabsList[e]);
|
|
|
},
|
|
|
- handleClick(e) {
|
|
|
- // console.log(this.parentCode);
|
|
|
+ async handleClick(e) {
|
|
|
// 菜单编码
|
|
|
this.code = e.name || e.code;
|
|
|
+ const itemType = this.menusall.find(j => j.code == this.code);
|
|
|
+ if (itemType && itemType.type == 0) {
|
|
|
+ window.open(itemType.url);
|
|
|
+ }
|
|
|
const item = this.tabsList.find(i => i.code == this.code);
|
|
|
const data = { name: this.code };
|
|
|
if (item.parentCode) data.parentCode = true;
|