WIP: acct mgmt search bar

This commit is contained in:
Cindy Chang
2024-06-19 10:12:16 +08:00
parent 341fd61d07
commit 80529b85fe
6 changed files with 93 additions and 8 deletions

View File

@@ -0,0 +1,41 @@
<template>
<div class="flex w-[1216px] items-center pt-2 flex-col">
<div class="flex">Account Admin SSO/General cases</div>
<div class="flex justify-end">
<div class="flex">
<SearchBar/>
</div>
</div>
</div>
</template>
<script>
import { storeToRefs, mapState, } from 'pinia';
import LoadingStore from '@/stores/loading.js';
import SearchBar from '../../../components/AccountMenu/SearchBar.vue';
export default {
setup() {
const loadingStore = LoadingStore();
const { isLoading } = storeToRefs(loadingStore);
return {
isLoading,
};
},
data() {
return {
};
},
components: {
SearchBar,
},
created() {
},
mounted() {
this.isLoading = false; //TODO:
},
};
</script>

View File

@@ -67,7 +67,6 @@ export default {
},
beforeRouteEnter(to, from, next) {
// 重新整理畫面以及第一次進入網頁時beforeRouteEnter這個hook會被執行然而beforeRouteUpdate不會被執行
const loginStore = LoginStore();
if (!getCookie("isLuciaLoggedIn")) {
next({
path: '/login',