From ecbadb5cceee2225c7574f2e3390adb98c5035a1 Mon Sep 17 00:00:00 2001 From: smallchill Date: Mon, 28 Oct 2019 16:10:19 +0800 Subject: [PATCH] =?UTF-8?q?:zap:=20=E9=80=BB=E8=BE=91=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/iframe/main.vue | 6 +++--- src/const/user/info.js | 2 +- src/page/index/index.vue | 17 ++++++++--------- src/views/flow/follow.vue | 2 +- 4 files changed, 13 insertions(+), 14 deletions(-) diff --git a/src/components/iframe/main.vue b/src/components/iframe/main.vue index 13a44c8..4d421bc 100644 --- a/src/components/iframe/main.vue +++ b/src/components/iframe/main.vue @@ -61,12 +61,12 @@ load() { this.show(); var flag = true; //URL是否包含问号 - if (this.$route.query.src.indexOf("?") == -1) { + if (this.$route.query.src !== undefined && this.$route.query.src.indexOf("?") === -1) { flag = false; } var list = []; for (var key in this.$route.query) { - if (key != "src" && key != "name" && key != "i18n") { + if (key !== "src" && key !== "name" && key !== "i18n") { list.push(`${key}= this.$route.query[key]`); } } @@ -84,7 +84,7 @@ let time = 3; const timeFunc = setInterval(() => { time--; - if (time == 0) { + if (time === 0) { this.hide(); clearInterval(timeFunc); } diff --git a/src/const/user/info.js b/src/const/user/info.js index db39685..a9df9a6 100644 --- a/src/const/user/info.js +++ b/src/const/user/info.js @@ -13,7 +13,7 @@ export default { url: 'link', }, canvasOption: { - text: 'bladex', + text: '', ratio: 0.1 }, action: '/api/blade-resource/oss/endpoint/put-file', diff --git a/src/page/index/index.vue b/src/page/index/index.vue index 179c0a7..ba823a3 100644 --- a/src/page/index/index.vue +++ b/src/page/index/index.vue @@ -2,7 +2,7 @@
- +
@@ -11,7 +11,7 @@
- + @@ -47,7 +47,7 @@ sidebar }, name: "index", - provide () { + provide() { return { index: this }; @@ -87,16 +87,15 @@ }); }, //打开菜单 - openMenu (item = {}) { + openMenu(item = {}) { this.$store.dispatch("GetMenu", item.id).then(data => { if (data.length !== 0) { this.$router.$avueRouter.formatRoutes(data, true); } - //当点击顶部菜单做的事件 - if (!this.validatenull(item)) { + //当点击顶部菜单后默认打开第一个菜单 + /*if (!this.validatenull(item)) { let itemActive = {}, childItemActive = 0; - //vue-router路由 if (item.path) { itemActive = item; } else { @@ -109,11 +108,11 @@ this.$store.commit('SET_MENU_ID', item); this.$router.push({ path: this.$router.$avueRouter.getPath({ - name: itemActive.label, + name: (itemActive.label || itemActive.name), src: itemActive.path }, itemActive.meta) }); - } + }*/ }); }, diff --git a/src/views/flow/follow.vue b/src/views/flow/follow.vue index abfd5c1..104d8ed 100644 --- a/src/views/flow/follow.vue +++ b/src/views/flow/follow.vue @@ -88,7 +88,7 @@ search: true, }, { - label: "流程实例id", + label: "实例id", prop: "processInstanceId", search: true, width: 320,