This commit is contained in:
lmj
2022-10-17 14:35:00 +08:00
parent ea6c495a9e
commit 51f5e9d673
2 changed files with 29 additions and 5 deletions

View File

@@ -1,5 +1,5 @@
<template>
<div class="my-note">
<div class="my-note" @change="handleClick">
<div class="mynote">
<div class="mynote-tab">
<div @click="notetabType(1)" :class="notetab == 1 ? 'noteactive' : ' ' "> <span>新增笔记</span> </div>
@@ -150,6 +150,12 @@ export default {
},
watch: {
selected:{
handler(val,old){
this.$emit('change',this.selected)
},
deep:true
},
data(val){
if(val.id) {
console.log(val,'val');
@@ -163,6 +169,9 @@ export default {
// }
},
methods: {
handleClick(){
this.$emit('change',this.selected)
},
onPlayVideo(conId,time) {
//这里应该加上内容的id
this.$emit('onPlayVideo',conId,time);