Skip to content

.d.ts文件版本问题 @types\reflux #525

@chenshuai2144

Description

@chenshuai2144

这样写是错误的

class StatusStore extends Reflux.Store {
    page: string
    constructor() {
        super();
        this.listenables = pageAction;
        this.page = location.hash.replace('#', '')
    }

    onPush(page) {
        if (this.page === page) {
            return false;
        }
        LeftMeunAction.hide();
        this.page = page;
        hashHistory.push(page);
    }
}

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