10.10综合交易所原始源码_移动端
admin
2026-01-06 04d8c6bfd48267c7b2eaccaa03170618d83e4cbd
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
import { defineStore } from 'pinia'
import { GET_USERLIST } from '@/store/types.store'
import { _itemUserOptionalList } from '@/service/quotes.api'
export const useMyListStore = defineStore('myList', {
    // state 持久化
    persist: true,
    state: () => ('myList', {
        userList: []
    }),
    getters: {
    },
    actions: {
        async [GET_USERLIST]() { // 发送请求获取信息
            _itemUserOptionalList().then((res) => {
                this.userList = res
            })
        },
    },
})