Commit 588f625d authored by Clement Ho's avatar Clement Ho

[skip ci] convert sidebarService into singleton

parent f7d39c2b
......@@ -5,7 +5,13 @@ Vue.use(VueResource);
export default class SidebarService {
constructor(endpoint) {
this.endpoint = endpoint;
if (!SidebarService.singleton) {
this.endpoint = endpoint;
SidebarService.singleton = this;
}
return SidebarService.singleton;
}
get() {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment