|
@@ -8,7 +8,8 @@ const debug = process.env.NODE_ENV !== 'production';
|
|
|
const state = {
|
|
|
websocketTimeSec: 1000,
|
|
|
loading: false, //全局 - 加载中....
|
|
|
- themeName: localStorage.getItem("authToken") || "dark", // 主题
|
|
|
+ themeName: localStorage.getItem("themeName") || "dark", // 主题
|
|
|
+ menuData: [],
|
|
|
windturbineMap: {},
|
|
|
};
|
|
|
|
|
@@ -30,7 +31,10 @@ const actions = {
|
|
|
context.commit("update", newData);
|
|
|
},
|
|
|
changeTheme(context, str) {
|
|
|
- context.commit("changeTheme", str)
|
|
|
+ context.commit("changeTheme", str);
|
|
|
+ },
|
|
|
+ changeMenuData(context, str) {
|
|
|
+ context.commit("changeMenuData", str);
|
|
|
}
|
|
|
};
|
|
|
|