Revert "wip"

This reverts commit efc6d8d593.
This commit is contained in:
ろむねこ 2024-07-18 16:49:05 +09:00
parent efc6d8d593
commit 62a4bba4d1
Signed by: Fujimatsu
GPG Key ID: FA1F39A1BA37D168
3 changed files with 5 additions and 20 deletions

View File

@ -2,16 +2,8 @@
<router-view />
</template>
<script lang="ts">
import { defineComponent } from 'vue';
import { useStore, Store } from 'vuex';
import { StateInterface } from './store';
export default defineComponent({
name: 'App',
setup() {
const store: Store<StateInterface> = useStore();
return { store };
},
<script setup lang="ts">
defineOptions({
name: 'App'
});
</script>

View File

@ -16,15 +16,8 @@
</template>
<script setup lang="ts">
import { StoreInstance } from '@quasar/app-vite';
import { ref } from 'vue';
import { storeKey, useStore } from 'vuex';
// AccountStateStoreisLoggedInfalse/login
const store = useStore<StoreInstance>(storeKey);
console.log(store.getters['AccountStateStore/isLoggedIn']);
import EssentialLink, { EssentialLinkProps } from 'components/EssentialLink.vue';
defineOptions({
name: 'MainLayout'

View File

@ -17,7 +17,7 @@ declare module '@vue/runtime-core' {
}
// Provide typings for `useStore` helper
export const storeKey: InjectionKey<VuexStore<StateInterface>> = Symbol('account-state');
export const storeKey: InjectionKey<VuexStore<StateInterface>> = Symbol('vuex-key');
// Provide typings for `this.$router` inside Vuex stores
declare module 'vuex' {