[feature](webapp) upgrade chat version

This commit is contained in:
williamhliu
2023-06-30 17:42:03 +08:00
parent 8639c23dc4
commit 805a59dddd
69 changed files with 1570 additions and 842 deletions

View File

@@ -5,6 +5,7 @@ import themeSettings from './themeSettings';
import proxy from './proxy';
import routes from './routes';
import moment from 'moment';
import ENV_CONFIG from './envConfig';
const { REACT_APP_ENV, RUN_TYPE } = process.env;
@@ -19,6 +20,7 @@ export default defineConfig({
API_BASE_URL: '/api/semantic/', // 直接在define中挂载裸露的全局变量还需要配置eslintts相关配置才能导致在使用中不会飘红冗余较高这里挂在进程环境下
CHAT_API_BASE_URL: '/api/chat/',
AUTH_API_BASE_URL: '/api/auth/',
...ENV_CONFIG,
},
},
metas: [

View File

@@ -13,8 +13,7 @@ const Settings: LayoutSettings & {
colorWeak: false,
title: '',
pwa: false,
// logo: 'https://gw.alipayobjects.com/zos/rmsportal/KDpgvguMpGfqaHPjicRK.svg',
iconfontUrl: '//at.alicdn.com/t/c/font_3201979_rncj6jun6k.js',
iconfontUrl: '//at.alicdn.com/t/c/font_3201979_drwu4z3kkbi.js',
splitMenus: true,
menu: {
defaultOpenAll: true,

View File

@@ -0,0 +1,2 @@
const ENV_CONFIG = {};
export default ENV_CONFIG;