From cd4a64b39c429f2f5b45cb042d1b66f1cd3904cd Mon Sep 17 00:00:00 2001
From: 劉鈞霖 <benson@gmail.com>
Date: 星期一, 15 十一月 2021 18:06:40 +0800
Subject: [PATCH] [ Update ] 更新 navbar 清單 根據 角色 顯示清單

---
 PAMapp/pages/index.vue |   30 ------------------------------
 1 files changed, 0 insertions(+), 30 deletions(-)

diff --git a/PAMapp/pages/index.vue b/PAMapp/pages/index.vue
index 7a5053b..feffa01 100644
--- a/PAMapp/pages/index.vue
+++ b/PAMapp/pages/index.vue
@@ -1,8 +1,5 @@
 <template>
     <div>
-        <el-button @click="login('user')">摰X��</el-button>
-        <el-button @click="login('admin')">憿批��</el-button>
-        <el-button @click="remove">��</el-button>
         <Ui-Carousel></Ui-Carousel>
         <div class="page-container">
             <h5 class="mdTxt mb-30">����憿批��</h5>
@@ -92,33 +89,6 @@
             setFavoriteToStorage(this.consultantList)
         }
     }
-
-    // TODO: ��TP隤����� ���蝙�
-    login(account: string) {
-        const user = {
-            username: account,
-            password: account
-        }
-        login(user).then((res) => {
-            localStorage.setItem('id_token', res.data.id_token);
-
-            if (account === 'admin') {
-                this.$router.push('/myAppointmentList/appointmentList');
-            } else {
-                this.$router.go(0);
-            }
-
-        })
-
-
-    }
-
-    // TODO: ��TP隤����� ���蝙�
-    remove() {
-        localStorage.removeItem('id_token');
-        this.$router.go(0)
-    }
-
 }
 
 </script>

--
Gitblit v1.8.0