|
@@ -326,7 +326,7 @@ module.exports = app => {
|
|
|
const result2 = await ctx.service.subProject.updatePageshow(ctx.subProject.id);
|
|
|
if (!result2) throw '保存数据失败';
|
|
|
if (data.addFunSet) {
|
|
|
- const funSet = ctx.subProject.fun_set ? JSON.parse(ctx.subProject.fun_set) : {};
|
|
|
+ const funSet = ctx.subProject.fun_set;
|
|
|
ctx.helper._.defaultsDeep(data.addFunSet, funSet);
|
|
|
const result3 = await ctx.service.subProject.updateFunSet(ctx.subProject.id, data.addFunSet);
|
|
|
if (!result3) throw '保存数据失败';
|