Commit d2919b82 authored by 姬鋆屾's avatar 姬鋆屾

tui

parent 76b4c858
......@@ -127,7 +127,11 @@ export default {
const dataCopy = Object.assign({}, data);
array.forEach((item) => {
dataCopy[item] =
dataCopy[item] === undefined ? [] : dataCopy[item].split(",");
dataCopy[item] === undefined
? []
: Array.isArray(dataCopy[item])
? dataCopy[item]
: dataCopy[item].split(",");
});
return dataCopy;
},
......
......@@ -298,7 +298,7 @@ export default {
{
prop: "roleIds",
label: "所属角色",
formatter: this.formatters,
formatter: this.formatter,
align: "center",
},
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment