| 1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
 | | import Vue from 'vue' |  | import DataDict from '@/utils/dict' |  | import { getDicts as getDicts } from '@/api/system/dict/data' |  |   |  | function install() { |  |   Vue.use(DataDict, { |  |     metas: { |  |       '*': { |  |         labelField: 'dictLabel', |  |         valueField: 'dictValue', |  |         request(dictMeta) { |  |           return getDicts(dictMeta.type).then(res => res.data) |  |         }, |  |       }, |  |     }, |  |   }) |  | } |  |   |  | export default { |  |   install, |  | } | 
 |