vue2.0生命周期、计算属性、watch的执行顺序


    created(){
        console.log('created')
        this.PageIndex=2
    },
    mounted() {
        this.getAppData()
        console.log('mounted')
    },
    computed: {
        apps(){
            console.log('computed')
            return this.$store.state[this.apiApp.store][this.apiApp.resData];
        }
    },
    watch:{
        PageIndex(){
            console.log('watch')
        }
    }
powerConfigure.vue?0839:62 created
powerConfigure.vue?0839:71 computed
powerConfigure.vue?0839:67 mounted
powerConfigure.vue?0839:77 watch

 

请使用手机"扫一扫"x


免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM