You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

87 lines
2.3 KiB

/** @format */
import { dateUtil } from '/nerv-lib/util/date-util';
import mockResource from './resource.json';
import { ref } from 'vue';
const value = ref('1');
export const appConfig = {
projectType: 'web',
baseApi: '/api',
enablePermissions: false,
10 months ago
// themeColor: '#eee',
siderPosition: 'left',
baseHeader: '/parkingManage',
baseRouter: '/parkingManage/parkingLotManage',
themeConfig: {
bgImageUrl: `${import.meta.env.VITE_PUBLIC_PATH}/asset/image/login/background.png`,
},
// userCustomRouterGuard: (to, from, next, whiteNameList, authorizationStore, appConfig) => {
// console.log({ to, from, next, whiteNameList, authorizationStore, appConfig }, 'routeConfig');
// next();
// },
// customUpdatePwd: () => import('/@/view/updatePassword/updatePassword.vue'),
headerSlotConfig: {
component: 'NsSelect',
componentProps: {
style: { width: '200px' },
placeholder: '请选择',
value,
onChange: (cur) => {
value.value = cur;
},
options: [
{ label: '济阳', value: '1' },
{ label: '临沂', value: '2' },
],
},
},
timeout: 60 * 1000,
10 months ago
userLoginApi: '/carbon-smart/user/login',
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: {
title: '修改密码',
10 months ago
subtitle: 'huaxing平台',
api: '/api/web/objs/User/changePassword',
},
// headerBellInfo: {
// isShow: true,
// api: '/api/web/objs/bulletin/readCount',
// toRouterName: 'NoticeManageIndex',
// },
resourceInfo: {
application: {
version: '1.1.74',
label: '停车业务平台',
dataScope: {
scopeMode: 0,
scopeType: '',
dataTips: '',
},
},
api: '/qa/Operation/Resources/Pc/init',
token: `${dateUtil().format('YYYYMMDD')}1a329ffasasozozxqq66cfab7`,
},
};