mirror of
https://github.com/makeplane/plane
synced 2024-06-14 14:31:34 +00:00
22 lines
371 B
TypeScript
22 lines
371 B
TypeScript
import { action, makeObservable, observable } from "mobx";
|
|
|
|
export interface IRouterStore {
|
|
query: any;
|
|
setQuery: (query: any) => void;
|
|
}
|
|
|
|
export class RouterStore implements IRouterStore {
|
|
query = {};
|
|
|
|
constructor() {
|
|
makeObservable(this, {
|
|
query: observable,
|
|
setQuery: action,
|
|
});
|
|
}
|
|
|
|
setQuery(query: any) {
|
|
this.query = query;
|
|
}
|
|
}
|