parent
15b7d0c143
commit
20a830e35e
|
@ -3,6 +3,7 @@ import GlobalData from "src/common/GlobalData";
|
|||
import { Common } from "./Common";
|
||||
import EventBus, { EventNamesDefine } from "./EventBus";
|
||||
import OptionsType from "./OptionsType";
|
||||
import { Cookies } from "quasar";
|
||||
|
||||
export default class Initializer {
|
||||
private options: OptionsType;
|
||||
|
@ -193,6 +194,19 @@ export default class Initializer {
|
|||
.then((response) => {
|
||||
if (response && typeof response.attribute != "undefined") {
|
||||
$store.commit("setDeviceAttribute", response.attribute);
|
||||
if (response.attribute & Protocol.EDeviceAttribute.CustomISV) {
|
||||
let language = Cookies.get("language");
|
||||
if (!language) {
|
||||
language = "zh-CN";
|
||||
}
|
||||
|
||||
if (language != "en-US") {
|
||||
Cookies.set("language", "en-US", {
|
||||
expires: 365,
|
||||
});
|
||||
window.location.reload();
|
||||
}
|
||||
}
|
||||
}
|
||||
});
|
||||
}
|
||||
|
|
|
@ -294,4 +294,5 @@ export default {
|
|||
"edit group": "Edit Group",
|
||||
"open window": "Open Window",
|
||||
"close all windows": "Close All Windows",
|
||||
"select data(DBP) file": "Select Data(DBP) File",
|
||||
};
|
||||
|
|
|
@ -337,13 +337,13 @@ export default store(function (/* { ssrContext } */) {
|
|||
setAvancedDebug(state: StateInterface, playload?: any) {
|
||||
if (playload || playload == "true") {
|
||||
console.log("debug", playload);
|
||||
state.advanced_debug = playload;
|
||||
}
|
||||
state.advanced_debug = playload;
|
||||
},
|
||||
setFactoryMode(state: StateInterface, playload?: any) {
|
||||
if (playload || playload == "true") {
|
||||
console.log("factory", playload);
|
||||
state.advanced_debug = playload;
|
||||
}
|
||||
state.factory_mode = playload;
|
||||
},
|
||||
|
|
Loading…
Reference in New Issue