| | |
| | |
|
| | | // 回显数据字典(字符串数组)
|
| | | export function selectDictLabels(datas, value, separator) {
|
| | | if (value === undefined) {
|
| | | if (value === undefined || value.length ===0) {
|
| | | return "";
|
| | | }
|
| | | if (Array.isArray(value)) {
|
| | | value = value.join(",");
|
| | | }
|
| | | var actions = [];
|
| | | var currentSeparator = undefined === separator ? "," : separator;
|
| | |
| | | }
|
| | |
|
| | | // 验证是否为blob格式
|
| | | export async function blobValidate(data) {
|
| | | try {
|
| | | const text = await data.text();
|
| | | JSON.parse(text);
|
| | | return false;
|
| | | } catch (error) {
|
| | | return true;
|
| | | }
|
| | | } |
| | | export function blobValidate(data) {
|
| | | return data.type !== 'application/json'
|
| | | }
|