You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

24 lines
412 B

import { defineStore } from "pinia";
import { getConfig } from "@/api/index.js";
const useStore = defineStore("main", {
state : () => ({
config: {
tw: {},
en: {},
cn: {},
}
}),
actions: {
async getConfig() {
let res = await getConfig();
if(res.code === 200){
this.config = res.data;
}
}
},
getters: {},
});
export default useStore;