Commit 530e8b4a authored by cellee's avatar cellee

Signed-off-by: cellee <893264950@qq.com>

parent 35276b15
......@@ -254,6 +254,7 @@ export default defineConfig({
path: '/CommunityManagement',
name: 'communitymanagement',
icon: 'HddOutlined',
access: 'canRead',
routes: [
{
path: './CellList',
......
/*
* @Author: your name
* @Date: 2020-12-03 11:27:07
* @LastEditTime: 2020-12-03 11:31:17
* @LastEditors: Please set LastEditors
* @Description: In User Settings Edit
* @FilePath: \tostumi\src\access.ts
*/
export default function (initialState: any) {
const userId = JSON.parse(localStorage.getItem('userInfo') as any);
return {
canRead: (foo: any) => {
console.log(foo);
console.log(userId);
// return foo.ownerId === userId;
return true;
},
};
}
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