From 207da61520b5b965f4ac6f32f6f60c890ecda4ec Mon Sep 17 00:00:00 2001 From: zhengkunwang223 Date: Wed, 15 Feb 2023 18:09:26 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E5=8E=BB=E6=8E=89=E6=B5=8F=E8=A7=88?= =?UTF-8?q?=E5=99=A8=E8=B7=AF=E5=BE=84=E4=B8=AD=E7=9A=84=201panel?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- frontend/src/routers/router.ts | 2 +- frontend/src/views/setting/safe/index.vue | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/frontend/src/routers/router.ts b/frontend/src/routers/router.ts index e1952a1b3..ae9d31615 100644 --- a/frontend/src/routers/router.ts +++ b/frontend/src/routers/router.ts @@ -71,7 +71,7 @@ export const routes: RouteRecordRaw[] = [ }, ]; const router = createRouter({ - history: createWebHistory('/1panel/'), + history: createWebHistory('/'), routes: routes as RouteRecordRaw[], strict: false, scrollBehavior: () => ({ left: 0, top: 0 }), diff --git a/frontend/src/views/setting/safe/index.vue b/frontend/src/views/setting/safe/index.vue index b462130ca..469ee8a5b 100644 --- a/frontend/src/views/setting/safe/index.vue +++ b/frontend/src/views/setting/safe/index.vue @@ -231,7 +231,7 @@ const onSavePort = async (formEl: FormInstance | undefined, key: string, val: an MsgSuccess(i18n.global.t('commons.msg.operationSuccess')); let href = window.location.href; let ip = href.split('//')[1].split(':')[0]; - window.open(`${href.split('//')[0]}//${ip}:${val}/1panel/login`, '_self'); + window.open(`${href.split('//')[0]}//${ip}:${val}/login`, '_self'); }) .catch(() => { loading.value = false; @@ -239,7 +239,6 @@ const onSavePort = async (formEl: FormInstance | undefined, key: string, val: an }); }; const handleMFA = async () => { - console.log('dawdwda'); if (form.mfaStatus === 'enable') { const res = await getMFA(); otp.secret = res.data.secret;