Revert "test"

This reverts commit ac55722f22.
This commit is contained in:
ろむねこ 2024-07-18 16:49:11 +09:00
parent 5a1af1e7c9
commit 1ac34ae388
Signed by: Fujimatsu
GPG Key ID: FA1F39A1BA37D168

View File

@ -19,24 +19,22 @@ import {
* with the Store instance.
*/
export interface AccountStateInterface {
account: {
username: string
token: string
}
isLogin: boolean
taskList: any[]
export interface StateInterface {
// Define your own store structure, using submodules if needed
// example: ExampleStateInterface;
// Declared as unknown to avoid linting issue. Best to strongly type as per the line above.
example: unknown
}
// provide typings for `this.$store`
declare module '@vue/runtime-core' {
interface ComponentCustomProperties {
$store: VuexStore<AccountStateInterface>
$store: VuexStore<StateInterface>
}
}
// provide typings for `useStore` helper
export const storeKey: InjectionKey<VuexStore<AccountStateInterface>> = Symbol('vuex-key')
export const storeKey: InjectionKey<VuexStore<StateInterface>> = Symbol('vuex-key')
// Provide typings for `this.$router` inside Vuex stores
declare module "vuex" {
@ -46,8 +44,12 @@ declare module "vuex" {
}
}
export default store(function(/* { ssrContext } */) {
const Store = createStore<AccountStateInterface>({
export default store(function (/* { ssrContext } */) {
const Store = createStore<StateInterface>({
modules: {
// example
},
// enable strict mode (adds overhead!)
// for dev mode and --debug builds only
strict: !!process.env.DEBUGGING