How to switch multiple themes in vue

that"s the question!
theme files are placed in the vue project, for example, directory:

src/themes/settings.vue
src/themes/theme1/files
src/themes/theme2/files
src/themes/theme3/files

the default topic name is obtained from the server"s API interface, for example, the data returned by API: {"defaultTheme": "theme1"} .

the name and number of CSS files for each topic are different. How can I switch themes?

Mar.17,2021

function switchTheme(themeName) {
    import(`./${themeName}/files`)
}
switchTheme('theme1')
Menu