mirror of
https://github.com/m-xlsea/ruoyi-plus-soybean.git
synced 2025-09-24 07:49:47 +08:00
feat: 新增代码生成页面
This commit is contained in:
@ -2,13 +2,13 @@ import { defineStore } from 'pinia';
|
||||
import { ref } from 'vue';
|
||||
|
||||
export const useDictStore = defineStore('dict', () => {
|
||||
const dictData = ref<{ [key: string]: Array<Api.System.DictData> }>({});
|
||||
const dictData = ref<{ [key: string]: Api.System.DictData[] }>({});
|
||||
|
||||
const getDict = (key: string) => {
|
||||
return dictData.value[key];
|
||||
};
|
||||
|
||||
const setDict = (key: string, dict: Array<Api.System.DictData>) => {
|
||||
const setDict = (key: string, dict: Api.System.DictData[]) => {
|
||||
dictData.value[key] = dict;
|
||||
};
|
||||
|
||||
|
Reference in New Issue
Block a user