init commit

This commit is contained in:
iqudoo
2026-04-30 10:16:43 +08:00
commit 2c8eb4f587
44 changed files with 17574 additions and 0 deletions

27
src/services/config.js Normal file
View File

@@ -0,0 +1,27 @@
let _defineConfig = {
version: "${lib_version}"
}
let _defConfig = {
}
let _customConfig = {
}
export function getVersion() {
return _defineConfig.version;
}
export function getConfig(key) {
let item = _customConfig[key];
if (!item) {
item = _defConfig[key];
}
return item;
}
export function setConfig(config) {
if (config && typeof config == "object") {
Object.assign(_customConfig, config);
}
}