添加了跳转

This commit is contained in:
2020-10-25 11:25:08 +08:00
parent 8e64fc337b
commit 8dbc19250b
2 changed files with 27 additions and 21 deletions

View File

@@ -20,7 +20,7 @@
<span class="score">5.0</span>
</div>
</div>
<div class="right">
<div class="right" @click="bianji">
编辑信息
</div>
</div>
@@ -77,6 +77,7 @@
}
</style>
<script lang="ts">
import router from '@/router';
import { defineComponent, ref } from "vue";
export default defineComponent({
@@ -84,10 +85,15 @@ export default defineComponent({
info: Object
},
setup(props) {
console.log(1);
console.log(props.info);
function bianji(){
if(props.info != undefined){
router.push("/mine/webcast?id=" + props.info.liveid)
}
}
// const liveinfo = ref(props.liveinfo)
return {
// liveinfo
bianji
}
},
});