前端美化
This commit is contained in:
26
InfoGenie-frontend/public/aimodelapp/AI变量命名助手/env.js
Normal file
26
InfoGenie-frontend/public/aimodelapp/AI变量命名助手/env.js
Normal file
@@ -0,0 +1,26 @@
|
||||
// 环境配置文件
|
||||
// 此文件定义了AI应用的基本配置
|
||||
|
||||
// API配置
|
||||
window.API_CONFIG = {
|
||||
baseUrl: 'http://127.0.0.1:5002',
|
||||
endpoints: {
|
||||
variableNaming: '/api/aimodelapp/variable-naming'
|
||||
}
|
||||
};
|
||||
|
||||
// 认证配置
|
||||
window.AUTH_CONFIG = {
|
||||
tokenKey: 'token',
|
||||
getToken: () => localStorage.getItem('token'),
|
||||
isAuthenticated: () => !!localStorage.getItem('token')
|
||||
};
|
||||
|
||||
// 应用配置
|
||||
window.APP_CONFIG = {
|
||||
name: 'InfoGenie AI工具',
|
||||
version: '1.0.0',
|
||||
debug: false
|
||||
};
|
||||
|
||||
console.log('环境配置已加载');
|
||||
Reference in New Issue
Block a user