This commit is contained in:
commie
2025-11-23 01:01:52 +08:00
parent 6ec389ff41
commit 0783e46b4b
21 changed files with 6409 additions and 1264 deletions
+42
View File
@@ -0,0 +1,42 @@
import IMSDK from "openim-uniapp-polyfill";
import {
businessConfig
} from "@/api/login";
import {
filterEmptyValue
} from "@/util/common";
const state = {
config: {}
};
const mutations = {
SET_CONFIG(state, info) {
state.config = {
...info,
};
}
};
const actions = {
async getConfig({
commit
}) {
try {
const data = await businessConfig();
//filterEmptyValue(businessData);
commit("SET_CONFIG", data);
} catch (e) {
console.log(e);
uni.$u.toast("获取系统信息失败");
}
},
};
export default {
namespaced: true,
state,
mutations,
actions,
};