import Vue from "vue";
import { getDicts } from "@/api/system/dict/data";
export default function(){
    
        
        return Promise.all([
            getDicts('iot_device_font_type'),
            // getDicts('iot_devices_font_color'),
            // getDicts('iot_device_font_inScreen_mode'),
            // getDicts('iot_template_category'),
            // getDicts('iot_device_font_size'),
        ]).then(resArr=>{
            initFontType(resArr[0]);

            function initFontType(res){
                let dic = {};
                res.data.forEach(item => {
                    dic[item.dictValue] = item.cssClass;
                });
                Vue.prototype.fontTypeDic = dic;
                Vue.prototype.fontTypeList = res.data;
            }
        });

}