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