提交 9dc012ba 编写于 作者: tony001's avatar tony001

zpc --- 统一资源中心fix2

上级 66c1cbed
...@@ -4,11 +4,11 @@ ...@@ -4,11 +4,11 @@
* @param param0 * @param param0
* @param data * @param data
*/ */
export const commitResourceData = ({ commit, state }: { commit: any, state: any }, { unires, enablePermissionValid }: { unires: Array<any>, enablePermissionValid: boolean }) => { export const commitResourceData = ({ commit, state }: { commit: any, state: any }, { unires, enablepermissionvalid }: { unires: Array<any>, enablepermissionvalid: boolean }) => {
if(unires && unires.length > 0){ if(unires && unires.length > 0){
commit('setResourceData', unires); commit('setResourceData', unires);
} }
if(enablePermissionValid){ if(enablepermissionvalid){
commit('setEnablePermissionValid', enablePermissionValid); commit('setEnablePermissionValid', enablepermissionvalid);
} }
} }
\ No newline at end of file
...@@ -17,6 +17,6 @@ export const setResourceData = (state: any, resourceArray:Array<any>) => { ...@@ -17,6 +17,6 @@ export const setResourceData = (state: any, resourceArray:Array<any>) => {
* @param state * @param state
* @param resourceArray * @param resourceArray
*/ */
export const setEnablePermissionValid = (state: any, enablePermissionValid:boolean) => { export const setEnablePermissionValid = (state: any, enablepermissionvalid:boolean) => {
state.enablePermissionValid = enablePermissionValid; state.enablePermissionValid = enablepermissionvalid;
} }
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册