|
@@ -20,6 +20,7 @@ import useTagsViewStore from '@/store/modules/tagsView';
|
|
|
|
|
|
import IframeToggle from './IframeToggle/index.vue';
|
|
import IframeToggle from './IframeToggle/index.vue';
|
|
const { proxy } = getCurrentInstance() as ComponentInternalInstance;
|
|
const { proxy } = getCurrentInstance() as ComponentInternalInstance;
|
|
|
|
+const route = useRoute();
|
|
const tagsViewStore = useTagsViewStore();
|
|
const tagsViewStore = useTagsViewStore();
|
|
|
|
|
|
// 随机动画集合
|
|
// 随机动画集合
|
|
@@ -37,6 +38,20 @@ watch(
|
|
},
|
|
},
|
|
{ immediate: true }
|
|
{ immediate: true }
|
|
);
|
|
);
|
|
|
|
+
|
|
|
|
+onMounted(() => {
|
|
|
|
+ addIframe()
|
|
|
|
+})
|
|
|
|
+
|
|
|
|
+watch((route) => {
|
|
|
|
+ addIframe()
|
|
|
|
+})
|
|
|
|
+
|
|
|
|
+function addIframe() {
|
|
|
|
+ if (route.meta.link) {
|
|
|
|
+ useTagsViewStore().addIframeView(route)
|
|
|
|
+ }
|
|
|
|
+}
|
|
</script>
|
|
</script>
|
|
|
|
|
|
<style lang="scss" scoped>
|
|
<style lang="scss" scoped>
|