首先:项目里的数据字典路由已经配好
进入项目页面
引入数据字典
import { getTypeValue } from '@/api/dict/dictValue/index';
创建前获取到字典
getTypeValue('org_attr_type').then(response => {
this.attrTypeOptions = response.data.rows;
});
</
首先:项目里的数据字典路由已经配好
进入项目页面
引入数据字典
import { getTypeValue } from '@/api/dict/dictValue/index';
创建前获取到字典
getTypeValue('org_attr_type').then(response => {
this.attrTypeOptions = response.data.rows;
});
</