useUserStore -> useUserInfoStore
This commit is contained in:
parent
a169d71c1d
commit
bbc8d8b6b9
@ -32,7 +32,7 @@
|
|||||||
import { useRoute } from 'vue-router';
|
import { useRoute } from 'vue-router';
|
||||||
import { ref } from 'vue';
|
import { ref } from 'vue';
|
||||||
import UserFormInput from '@c/input/UserFormInput.vue';
|
import UserFormInput from '@c/input/UserFormInput.vue';
|
||||||
import { useUserStore } from '@s/useUserStore';
|
import { useUserInfoStore } from '@/stores/useUserInfoStore';
|
||||||
|
|
||||||
const id = ref('');
|
const id = ref('');
|
||||||
const password = ref('');
|
const password = ref('');
|
||||||
@ -40,7 +40,7 @@
|
|||||||
const passwordAlert = ref(false);
|
const passwordAlert = ref(false);
|
||||||
const remember = ref(false);
|
const remember = ref(false);
|
||||||
|
|
||||||
const userStore = useUserStore();
|
const userStore = useUserInfoStore();
|
||||||
const route = useRoute();
|
const route = useRoute();
|
||||||
|
|
||||||
const handleIdChange = value => {
|
const handleIdChange = value => {
|
||||||
|
|||||||
@ -24,11 +24,11 @@
|
|||||||
|
|
||||||
<script setup>
|
<script setup>
|
||||||
import { onMounted, ref, computed, nextTick } from "vue";
|
import { onMounted, ref, computed, nextTick } from "vue";
|
||||||
import { useUserStore } from "@s/useUserStore"; // 사용자 정보 스토어 사용
|
import { useUserInfoStore } from "@/stores/useUserInfoStore"; // 사용자 정보 스토어 사용
|
||||||
import { useUserStore as useUserListStore } from "@s/userList"; // 사원 리스트 스토어
|
import { useUserStore as useUserListStore } from "@s/userList"; // 사원 리스트 스토어
|
||||||
import $api from "@api";
|
import $api from "@api";
|
||||||
|
|
||||||
const userStore = useUserStore();
|
const userStore = useUserInfoStore();
|
||||||
const userListStore = useUserListStore();
|
const userListStore = useUserListStore();
|
||||||
|
|
||||||
const userList = ref([]);
|
const userList = ref([]);
|
||||||
|
|||||||
@ -228,7 +228,7 @@
|
|||||||
</template>
|
</template>
|
||||||
<script setup>
|
<script setup>
|
||||||
import { useAuthStore } from '@s/useAuthStore';
|
import { useAuthStore } from '@s/useAuthStore';
|
||||||
import { useUserStore } from '@s/useUserStore';
|
import { useUserInfoStore } from '@/stores/useUserInfoStore';
|
||||||
import { useRouter } from 'vue-router';
|
import { useRouter } from 'vue-router';
|
||||||
import { useThemeStore } from '@s/darkmode';
|
import { useThemeStore } from '@s/darkmode';
|
||||||
import { onMounted, ref } from 'vue';
|
import { onMounted, ref } from 'vue';
|
||||||
@ -236,7 +236,7 @@ import { onMounted, ref } from 'vue';
|
|||||||
const user = ref(null);
|
const user = ref(null);
|
||||||
|
|
||||||
const authStore = useAuthStore();
|
const authStore = useAuthStore();
|
||||||
const userStore = useUserStore();
|
const userStore = useUserInfoStore();
|
||||||
const router = useRouter();
|
const router = useRouter();
|
||||||
|
|
||||||
const { isDarkMode, switchToDarkMode, switchToLightMode } = useThemeStore();
|
const { isDarkMode, switchToDarkMode, switchToLightMode } = useThemeStore();
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user