From 264cd70161d9391164b772639a52a7103c0cf08a Mon Sep 17 00:00:00 2001 From: aixianling Date: Wed, 17 Nov 2021 18:01:56 +0800 Subject: [PATCH] =?UTF-8?q?=E8=BF=BD=E5=8A=A0=E5=85=A8=E5=B1=80=E6=96=B9?= =?UTF-8?q?=E6=B3=95=E8=B7=B3=E8=BD=AC=E4=BD=BF=E5=85=B6=E8=83=BD=E5=9C=A8?= =?UTF-8?q?=E5=90=8C=E4=B8=80=E9=A1=B5=E9=9D=A2=E8=B7=B3=E8=BD=AC=E4=B8=8D?= =?UTF-8?q?=E5=8F=97=E5=BD=B1=E5=93=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/App.vue | 16 ++++------------ 1 file changed, 4 insertions(+), 12 deletions(-) diff --git a/src/App.vue b/src/App.vue index 8981d900..7c54362f 100644 --- a/src/App.vue +++ b/src/App.vue @@ -8,7 +8,6 @@ export default { } }, onLaunch: function () { - this.initConfig() }, onShow: function () { this.initWaterMarker() @@ -21,17 +20,10 @@ export default { }, methods: { ...mapMutations(['initWaterMarker', 'logout', 'getConfig']), - initDev() { - let baseURL = 'http://192.168.1.87:9000' - this.getConfig({baseURL}) - }, - initConfig() { - if (process.env.NODE_ENV == 'development') this.initDev() - else { - let baseURL = location.origin - this.getConfig({baseURL}) - } - }, + goto(params) { + let {path} = this.$route + this.$router.push({path, ...params}) + } }, }