Skip to content

this.$cache方法中不能调用$route么? #42

@myjf007

Description

@myjf007

Page.P('index',{ onLoad(){ let that = this; // 异步读 this.$cache.get('page_data', function (err, data) { // success or fail if (err) { that.$route('setting') } else { console.log('Get data success', data) } }) } })

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions