mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/learning-system-portal.git
synced 2025-12-16 06:16:44 +08:00
弹出窗口的逻辑处理
This commit is contained in:
@@ -3,6 +3,7 @@
|
||||
:close-on-click-modal="false"
|
||||
:visible.sync="guideCollection"
|
||||
:append-to-body="true"
|
||||
@closed="closeDlg"
|
||||
top="90px"
|
||||
:width="clientWidth">
|
||||
<div class="gui-box">
|
||||
@@ -36,10 +37,10 @@
|
||||
import { swiper, swiperSlide } from 'vue-awesome-swiper';
|
||||
export default {
|
||||
props:{
|
||||
show:{
|
||||
type:Boolean,
|
||||
default:false
|
||||
}
|
||||
// show:{
|
||||
// type:Boolean,
|
||||
// default:false
|
||||
// }
|
||||
},
|
||||
data(){
|
||||
return {
|
||||
@@ -96,15 +97,18 @@
|
||||
|
||||
// }
|
||||
// });
|
||||
|
||||
//只是在显示时才调用
|
||||
this.getlist();
|
||||
|
||||
},
|
||||
mounted() {
|
||||
|
||||
this.getlist();
|
||||
},
|
||||
methods:{
|
||||
show(){
|
||||
this.guideCollection=true;
|
||||
},
|
||||
closeDlg(){
|
||||
this.$emit('close');
|
||||
},
|
||||
goHome() {
|
||||
this.$router.push('/index')
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user