永旺用户心声
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.
 
 
 
 
 

13 lines
339 B

import { getConfig } from '@/http/api/base'
import { useRootStore } from '@/store/root'
export const useConfig = async () => {
const store = useRootStore()
try {
const [_config] = await Promise.all([getConfig()])
store.SET_CONFIG(_config.data)
Promise.resolve()
} catch (error) {
console.log('error: ', error)
}
}