dictionary.js 199 字节
Newer Older
1 2 3 4 5 6
import { store } from '@/store/index'

export const getDict = async (type) => {
    await store.dispatch("dictionary/getDictionary", type)
    return store.getters["dictionary/getDictionary"][type]
}