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