From 11253e5c9c81f05fec25d70974a2218462fb43e5 Mon Sep 17 00:00:00 2001
From: HelenHuang <LinHuang@pollex.com.tw>
Date: 星期六, 22 一月 2022 16:10:11 +0800
Subject: [PATCH] Fixed#134639 修正[ 顧問管理流程 ] 查看帳號資訊 : 編輯個人理念、個人背景、得獎經歷的文字跑版

---
 PAMapp/middleware/getUrlQuery.ts |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)

diff --git a/PAMapp/middleware/getUrlQuery.ts b/PAMapp/middleware/getUrlQuery.ts
index e6ff3ee..0a6c0ec 100644
--- a/PAMapp/middleware/getUrlQuery.ts
+++ b/PAMapp/middleware/getUrlQuery.ts
@@ -3,9 +3,13 @@
 const getUrlQuery: Middleware = (context) => {
   const currentRouteName = context.route.name;
   const satisfactionIdFromMsg = context.route.query.appointmentId;
+  const isUserLogin = context.store.getters['localStorage/isUserLogin'];
 
   if (currentRouteName === 'index' && satisfactionIdFromMsg) {
     context.store.commit('localStorage/storageSatisfactionIdFromMsg', satisfactionIdFromMsg);
+    if (!isUserLogin) {
+      context.redirect('/login');
+    }
   }
 }
 

--
Gitblit v1.8.0