From 3554eb378493dee6f0463a3e24596d076eebdf2c Mon Sep 17 00:00:00 2001 From: xiongchengqiang Date: Wed, 16 Dec 2020 17:54:29 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/mixins/gload.js | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/src/mixins/gload.js b/src/mixins/gload.js index 4557b0d..d205c76 100644 --- a/src/mixins/gload.js +++ b/src/mixins/gload.js @@ -8,12 +8,8 @@ let mixin = { ...mapGetters(['auth']) }, methods: { - loadPage (routerName, param) { - if (param) { - this.$router.push({name: routerName, query: param}) - } else { - this.$router.push({name: routerName}) - } + loadPage (routerName, param = {}) { + this.$router.push({name: routerName, query: param}) } } }