|
@@ -129,6 +129,10 @@ export default {
|
|
|
},
|
|
|
onImageSelected(data) {
|
|
|
this.hotspot.imageTextInfo.imageList = this.hotspot.imageTextInfo.imageList.concat(data)
|
|
|
+ if (this.hotspot.imageTextInfo.imageList.length > 20) {
|
|
|
+ this.$alert({ content: this.$i18n.t("hotspot.img_size") });
|
|
|
+ this.hotspot.imageTextInfo.imageList.length = 20;
|
|
|
+ }
|
|
|
this.isShowImageSelect = false
|
|
|
},
|
|
|
onEditorChange(content) {
|
|
@@ -144,21 +148,13 @@ export default {
|
|
|
this.$refs['my-audio'].switchPlayPause()
|
|
|
}
|
|
|
},
|
|
|
+
|
|
|
onAudioSelected(data){
|
|
|
console.log('sadf', data);
|
|
|
this.hotspot.imageTextInfo.audio = {...data[0]}
|
|
|
this.isShowAudioSelect = false
|
|
|
},
|
|
|
},
|
|
|
- watch: {
|
|
|
- 'hotspot.imageTextInfo.imageList': {
|
|
|
- handler(newVal) {
|
|
|
- if (newVal.length > 20) {
|
|
|
- return this.$alert({ content: this.$i18n.t('hotspot.img_size') });
|
|
|
- }
|
|
|
- }
|
|
|
- },
|
|
|
- }
|
|
|
}
|
|
|
</script>
|
|
|
|