|
|
@ -8,7 +8,7 @@ export const useInitConfigAndMallInfo = async () => { |
|
|
} = await getConfig() |
|
|
} = await getConfig() |
|
|
const store = useStore() |
|
|
const store = useStore() |
|
|
if (config.debug) new VConsole() |
|
|
if (config.debug) new VConsole() |
|
|
{ |
|
|
|
|
|
|
|
|
try { |
|
|
const { data: theme } = await getTheme() |
|
|
const { data: theme } = await getTheme() |
|
|
|
|
|
|
|
|
const r = document.querySelector(':root') |
|
|
const r = document.querySelector(':root') |
|
|
@ -19,10 +19,15 @@ export const useInitConfigAndMallInfo = async () => { |
|
|
.map(([k, v]) => [k, './static/offline' + v]) |
|
|
.map(([k, v]) => [k, './static/offline' + v]) |
|
|
.reduce((acc, [k, v]) => ({ ...acc, [k]: v }), {}) |
|
|
.reduce((acc, [k, v]) => ({ ...acc, [k]: v }), {}) |
|
|
store.SET_THEME(theme) |
|
|
store.SET_THEME(theme) |
|
|
|
|
|
} catch (error) { |
|
|
|
|
|
console.log(error) |
|
|
} |
|
|
} |
|
|
{ |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
try { |
|
|
const { data: menuList } = await getMenuList() |
|
|
const { data: menuList } = await getMenuList() |
|
|
store.SET_MENU_LIST(menuList) |
|
|
store.SET_MENU_LIST(menuList) |
|
|
|
|
|
} catch (error) { |
|
|
|
|
|
console.log(error) |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
try { |
|
|
try { |
|
|
|