v3.15.0【新增】升级SaToken到最新版本;【新增】重磅优化 数据字典;【新增】升级wangEditor-next;【新增】优化缓存实现redis与caffeine

This commit is contained in:
zhuoda
2025-03-31 23:19:41 +08:00
parent 7ef9000c62
commit 4683e31290
347 changed files with 4203 additions and 3792 deletions

View File

@@ -0,0 +1,31 @@
/*
* 字典插件
* 此插件为 1024创新实验室 自创的插件
*
* @Author: 1024创新实验室-主任:卓大
* @Date: 2024-09-06 20:51:03
* @Wechat: zhuda1024
* @Email: lab1024@163.com
* @Copyright 1024创新实验室 https://1024lab.net Since 2012
*/
import { useDictStore } from '/@/store/modules/system/dict.js';
export default {
install: (app) => {
const dictPlugin = {};
/**
* 根据枚举值获取描述
* @param {*} dictCode 字典编码
* @param {*} value 值
* @returns
*/
dictPlugin.getDataLabels = function (dictCode, value) {
return useDictStore().getDataLabels(dictCode, value);
};
app.config.globalProperties.$dictPlugin = dictPlugin;
app.provide('dictPlugin', dictPlugin);
},
};