登录相关mock
This commit is contained in:
@@ -1,22 +1,48 @@
|
||||
/** @format */
|
||||
import { dateUtil } from '/nerv-lib/util/date-util';
|
||||
import mockResource from './resource.json';
|
||||
console.log(mockResource.menus);
|
||||
|
||||
export const appConfig = {
|
||||
projectType: 'web',
|
||||
baseApi: '/api',
|
||||
enablePermissions: false,
|
||||
enablePermissions: true,
|
||||
// siderPosition: 'left',
|
||||
baseHeader: '/parkingManage',
|
||||
baseRouter: '/parkingManage/parkingLotManage',
|
||||
userCustomRouterGuard: (to, from, next, whiteNameList, authorizationStore, appConfig) => {
|
||||
console.log({ to, from, next, whiteNameList, authorizationStore, appConfig }, 'routeConfig');
|
||||
next();
|
||||
},
|
||||
// userCustomRouterGuard: (to, from, next, whiteNameList, authorizationStore, appConfig) => {
|
||||
// console.log({ to, from, next, whiteNameList, authorizationStore, appConfig }, 'routeConfig');
|
||||
// next();
|
||||
// },
|
||||
customUpdatePwd: () => import('/@/view/updatePassword/updatePassword.vue'),
|
||||
timeout: 60 * 1000,
|
||||
userLoginApi: 'api/web/objs/Login',
|
||||
// userResourceApi: '/api/web/objs/User/Resource',
|
||||
// userInfoApi: 'api/web/objs/CurrentUser',
|
||||
userLoginApi: () => {
|
||||
return {
|
||||
code: 200,
|
||||
success: true,
|
||||
data: { userToken: 123123123 },
|
||||
};
|
||||
},
|
||||
userResourceApi: () => {
|
||||
return { data: mockResource.menus };
|
||||
},
|
||||
userInfoApi: () => {
|
||||
return {
|
||||
code: 200,
|
||||
success: true,
|
||||
data: {
|
||||
accountCode: '1305107806187376793',
|
||||
accountName: 'adm*n',
|
||||
accountType: 'admin',
|
||||
accountStatus: 1,
|
||||
accountRealName: 'admin',
|
||||
organizationCode: 'dingcloud',
|
||||
authConfigList: [],
|
||||
organizeResCode: [],
|
||||
leadDepartmentUuidList: [],
|
||||
},
|
||||
};
|
||||
},
|
||||
useHistoryTag: false,
|
||||
// 修改密码配置
|
||||
updatePassWordInfo: {
|
||||
|
4309
nervui-smart-parking/src/config/resource.json
Normal file
4309
nervui-smart-parking/src/config/resource.json
Normal file
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user