修复了子路由模式下两个keepalive相互切换 keepalive失效的问题

This commit is contained in:
pixel
2021-02-09 19:25:56 +08:00
parent 296110f969
commit bedbd3c872
5 changed files with 30 additions and 21 deletions

View File

@@ -357,7 +357,7 @@ export default {
const fdTypes = ["string", "int", "bool", "float64", "time.Time"];
fdTypes.map(async fdtype => {
const res = await getDict(fdtype);
res.map(item => {
res&&res.map(item => {
this.fdMap[item.label] = fdtype;
});
});