1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
| import { defineStore } from 'pinia'
| import { store } from '@/store/index'
|
| interface LinkState {
| linkToken: string
| }
|
| export const useLinkStore = defineStore('linkStore', {
| state: (): LinkState => {
| return {
| linkToken: ''
| }
| },
| getters: {
| getLinkToken(): string {
| return this.linkToken
| }
| },
| actions: {
| setLinkToken(data: string) {
| this.linkToken = data
| }
| }
| })
|
| export const useLinkStoreWithOut = () => {
| return useLinkStore(store)
| }
|
|