|
@@ -7,6 +7,7 @@ import axios from 'axios'
|
|
|
export default class Crowi {
|
|
export default class Crowi {
|
|
|
constructor(context, window) {
|
|
constructor(context, window) {
|
|
|
this.context = context;
|
|
this.context = context;
|
|
|
|
|
+ this.config = {};
|
|
|
this.csrfToken = context.csrfToken;
|
|
this.csrfToken = context.csrfToken;
|
|
|
|
|
|
|
|
this.location = window.location || {};
|
|
this.location = window.location || {};
|
|
@@ -33,8 +34,16 @@ export default class Crowi {
|
|
|
return context;
|
|
return context;
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
+ setConfig(config) {
|
|
|
|
|
+ this.config = config;
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+ getConfig() {
|
|
|
|
|
+ return this.config;
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
recoverData() {
|
|
recoverData() {
|
|
|
- const keys = [
|
|
|
|
|
|
|
+ const keys = [
|
|
|
'userByName',
|
|
'userByName',
|
|
|
'userById',
|
|
'userById',
|
|
|
'users',
|
|
'users',
|