chore: 脚手架

This commit is contained in:
dap
2024-08-07 08:57:56 +08:00
parent 4bd4f7490b
commit c31259598b
83 changed files with 2127 additions and 225 deletions

View File

@@ -8,11 +8,33 @@ declare module 'vue-router' {
}
export interface VbenAdminProAppConfigRaw {
// 后端接口地址
VITE_GLOB_API_URL: string;
// 客户端ID
VITE_GLOB_APP_CLIENT_ID: string;
// # 全局加密开关(即开启了加解密功能才会生效 不是全部接口加密 需要和后端对应)
VITE_GLOB_ENABLE_ENCRYPT: string;
// RSA请求解密私钥
VITE_GLOB_RSA_PRIVATE_KEY: string;
// RSA请求加密公钥
VITE_GLOB_RSA_PUBLIC_KEY: string;
// 是否开启websocket 注意从配置文件获取的类型为string
VITE_GLOB_WEBSOCKET_ENABLE: string;
}
export interface ApplicationConfig {
// 后端接口地址
apiURL: string;
// 客户端key
clientId: string;
// 全局加密开关(即开启了加解密功能才会生效 不是全部接口加密 需要和后端对应)
enableEncrypt: boolean;
// RSA响应解密私钥
rsaPrivateKey: string;
// RSA请求加密公钥
rsaPublicKey: string;
// 是否开启websocket
websocketEnable: boolean;
}
declare global {

View File

@@ -3,18 +3,9 @@ import type { BasicUserInfo } from '@vben-core/typings';
/** 用户信息 */
interface UserInfo extends BasicUserInfo {
/**
* 用户描述
* 拓展使
*/
desc: string;
/**
* 首页地址
*/
homePath: string;
/**
* accessToken
*/
token: string;
[key: string]: any;
}
export type { UserInfo };