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
437 B

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