|
@@ -9,18 +9,22 @@
|
|
|
import audio from './audio.vue';
|
|
|
import image from './image.vue';
|
|
|
import video from './video.vue';
|
|
|
+import title from './title.vue';
|
|
|
+
|
|
|
|
|
|
let iconArr = [
|
|
|
{ name: "视频", key: "video", id: "vVideo", img: "video-icon", display: false },
|
|
|
{ name: "网页", key: "iframe", id: "vIframe", img: "iframe-icon", display: false },
|
|
|
{ name: "图片", key: "images", id: "vImage", img: "img-icon", display: false },
|
|
|
{ name: "模型", key: "model", id: "vModel", img: "model-icon", display: false },
|
|
|
+ { name: "介绍", key: "title", id: "vTitle", img: "txt-icon", display: false }
|
|
|
];
|
|
|
|
|
|
export default {
|
|
|
components:{
|
|
|
vAudio:audio,
|
|
|
vImage:image,
|
|
|
+ vTitle:title,
|
|
|
vVideo:video
|
|
|
},
|
|
|
methods:{
|
|
@@ -31,10 +35,10 @@ export default {
|
|
|
mounted(){
|
|
|
iconArr.forEach(item => {
|
|
|
if (this.hotspot[item.key]) {
|
|
|
- this.active = !this.active ? item.id : this.active;
|
|
|
- }
|
|
|
+ this.active = !this.active ? item.id : this.active;
|
|
|
+ }
|
|
|
});
|
|
|
- console.log(this.active);
|
|
|
+ !this.active && (this.active = 'vTitle')
|
|
|
},
|
|
|
data(){
|
|
|
return {
|