提交 | 用户 | 时间
|
722af2
|
1 |
<template> |
X |
2 |
<transition-group name="fade-transform" mode="out-in"> |
|
3 |
<inner-link |
|
4 |
v-for="(item, index) in iframeViews" |
|
5 |
:key="item.path" |
|
6 |
:iframeId="'iframe' + index" |
|
7 |
v-show="$route.path === item.path" |
|
8 |
:src="item.meta.link" |
|
9 |
></inner-link> |
|
10 |
</transition-group> |
|
11 |
</template> |
|
12 |
|
|
13 |
<script> |
|
14 |
import InnerLink from "../InnerLink/index" |
|
15 |
|
|
16 |
export default { |
|
17 |
components: { InnerLink }, |
|
18 |
computed: { |
|
19 |
iframeViews() { |
|
20 |
return this.$store.state.tagsView.iframeViews |
|
21 |
} |
|
22 |
} |
|
23 |
} |
|
24 |
</script> |