|
|
@@ -30,6 +30,7 @@ interface EnhancedConfig extends Config {
|
|
|
/** 初始化配置以及根据配置获取数据 */
|
|
|
export function useInitConfigs() {
|
|
|
const configs = ref<Config[]>([]);
|
|
|
+ const hiddenConfigs = ref<Config[]>([]);
|
|
|
const isOriginal = computed(() => {
|
|
|
return configs.value.some((c) => {
|
|
|
return c.showStyle.version === '原版';
|
|
|
@@ -61,7 +62,12 @@ export function useInitConfigs() {
|
|
|
|
|
|
function fetchConfigs(pageType?: string) {
|
|
|
return cfgList({ pageType }).then(({ records }) => {
|
|
|
- configs.value = records;
|
|
|
+ configs.value = records.filter((c) => {
|
|
|
+ return c.moduleName !== 'HIDDEN';
|
|
|
+ });
|
|
|
+ hiddenConfigs.value = records.filter((c) => {
|
|
|
+ return c.moduleName === 'HIDDEN';
|
|
|
+ });
|
|
|
return records;
|
|
|
});
|
|
|
}
|
|
|
@@ -69,6 +75,7 @@ export function useInitConfigs() {
|
|
|
return {
|
|
|
fetchConfigs,
|
|
|
configs,
|
|
|
+ hiddenConfigs,
|
|
|
devicesTypes,
|
|
|
isOriginal,
|
|
|
isCommon,
|