feat: 新增代码生成页面

This commit is contained in:
xlsea
2024-09-04 15:50:09 +08:00
parent c4d959d133
commit 824974e904
22 changed files with 1272 additions and 76 deletions

View File

@ -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;
};