web: common: fix default page
This commit is contained in:
parent
4a3b61dda8
commit
61abe6a2fc
@ -105,6 +105,11 @@ class SettingsStore {
|
|||||||
getSettings = async () => {
|
getSettings = async () => {
|
||||||
const newSettings = await api.settings.getSettings();
|
const newSettings = await api.settings.getSettings();
|
||||||
|
|
||||||
|
if (window["AscDesktopEditor"] !== undefined || this.personal) {
|
||||||
|
const dp = combineUrl(proxyURL, "/products/files/");
|
||||||
|
this.setDefaultPage(dp);
|
||||||
|
}
|
||||||
|
|
||||||
Object.keys(newSettings).map((key) => {
|
Object.keys(newSettings).map((key) => {
|
||||||
if (key in this) {
|
if (key in this) {
|
||||||
this.setValue(
|
this.setValue(
|
||||||
@ -124,11 +129,6 @@ class SettingsStore {
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
if (window["AscDesktopEditor"] !== undefined || this.personal) {
|
|
||||||
const dp = combineUrl(proxyURL, "/products/files/");
|
|
||||||
this.setDefaultPage(dp);
|
|
||||||
}
|
|
||||||
|
|
||||||
return newSettings;
|
return newSettings;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user