修复:弹出层挂载容器问题;🐛

fix: the problem of pop up layer mount container;
This commit is contained in:
chenghongxing
2020-12-02 22:30:49 +08:00
parent c2915c93d3
commit 5de611523c
2 changed files with 5 additions and 2 deletions

View File

@@ -1,5 +1,5 @@
<template>
<a-config-provider :locale="locale">
<a-config-provider :locale="locale" :get-popup-container="popContainer">
<router-view/>
</a-config-provider>
</template>
@@ -77,6 +77,9 @@ export default {
const key = route.path === '/' ? 'home.name' : getI18nKey(route.matched[route.matched.length - 1].path)
document.title = process.env.VUE_APP_NAME + ' | ' + this.$t(key)
},
popContainer() {
return document.getElementById("popContainer")
}
}
}
</script>