|
|
@ -1,10 +1,11 @@ |
|
|
import { getConfig, getCurrentFloor, getGuideList, getTheme } from '@/http/api' |
|
|
import { getConfig, getCurrentFloor, getGuideList, getTheme } from '@/http/api' |
|
|
import { useStore } from '@/store/root' |
|
|
import { useStore } from '@/store/root' |
|
|
|
|
|
import VConsole from 'vconsole' |
|
|
|
|
|
|
|
|
export const useInitConfigAndMallInfo = async () => { |
|
|
export const useInitConfigAndMallInfo = async () => { |
|
|
const _config = await getConfig() |
|
|
const _config = await getConfig() |
|
|
const store = useStore() |
|
|
const store = useStore() |
|
|
|
|
|
|
|
|
|
|
|
if (_config.data.debug) new VConsole() |
|
|
{ |
|
|
{ |
|
|
const { data: theme } = await getTheme() |
|
|
const { data: theme } = await getTheme() |
|
|
const r = document.querySelector(':root') |
|
|
const r = document.querySelector(':root') |
|
|
|