From a995a2b63571214e62766893e38a19b491fcd942 Mon Sep 17 00:00:00 2001 From: zhanghengxin Date: Thu, 19 Jan 2023 00:19:17 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20fix(remove):=20Remove=20logic=20?= =?UTF-8?q?which=20the=20same=20page=20is=20forbidden=20to=20open?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/mixins/app/Business_OpenThirdApp.js | 36 +++---- src/views/AppLauncherCheck.vue | 133 ++++++++++++------------ 2 files changed, 85 insertions(+), 84 deletions(-) diff --git a/src/mixins/app/Business_OpenThirdApp.js b/src/mixins/app/Business_OpenThirdApp.js index 642089fb..4c5ee309 100644 --- a/src/mixins/app/Business_OpenThirdApp.js +++ b/src/mixins/app/Business_OpenThirdApp.js @@ -30,24 +30,24 @@ export default { const port = appInfo.port ? `:${appInfo.port}` : '' const url = `${protocol}://${hostIp}${port}${appInfo.index}` let href = window.location.href.split("#")[0] - if (url === href) { - this.$buefy.toast.open({ - message: this.$t('The page to be opened is the same as current page'), - type: 'is-warning', - position: 'is-top', - duration: 5000, - queue: false, - container: null, - animation: 'fade', - onOpen: () => { - }, - onClose: () => { - }, - ariaRole: 'alert', - ariaLive: 'polite' - }) - return - } + // if (url === href) { + // this.$buefy.toast.open({ + // message: this.$t('The page to be opened is the same as current page'), + // type: 'is-warning', + // position: 'is-top', + // duration: 5000, + // queue: false, + // container: null, + // animation: 'fade', + // onOpen: () => { + // }, + // onClose: () => { + // }, + // ariaRole: 'alert', + // ariaLive: 'polite' + // }) + // return + // } if (appInfo.image.toLowerCase().indexOf("qbittorrent") === -1) { window.location.replace(url); } else { diff --git a/src/views/AppLauncherCheck.vue b/src/views/AppLauncherCheck.vue index 0fe0e14d..826021d6 100644 --- a/src/views/AppLauncherCheck.vue +++ b/src/views/AppLauncherCheck.vue @@ -6,89 +6,90 @@ * * Copyright (c) 2022 by IceWhale, All Rights Reserved. --> -