修改前端指向SAE的後端地址
This commit is contained in:
7
frontend/.env.production
Normal file
7
frontend/.env.production
Normal file
@@ -0,0 +1,7 @@
|
|||||||
|
# 前端生产环境配置
|
||||||
|
# 构建时使用的环境变量
|
||||||
|
|
||||||
|
# API 基础 URL - 使用阿里云NLB负载均衡器
|
||||||
|
VITE_API_BASE_URL=http://nlb-y7wvnvbyb726t5m4bz.cn-hongkong.nlb.aliyuncsslbintl.com:3001
|
||||||
|
|
||||||
|
# 其他环境变量可根据需要添加
|
||||||
@@ -24,7 +24,7 @@ import {
|
|||||||
ArrowLeftOutlined,
|
ArrowLeftOutlined,
|
||||||
} from '@ant-design/icons';
|
} from '@ant-design/icons';
|
||||||
import { useParams, useNavigate } from 'react-router-dom';
|
import { useParams, useNavigate } from 'react-router-dom';
|
||||||
import { PerformanceRecord } from '../../api/performance';
|
import { PerformanceRecord, PerformanceItemDetail } from '../../api/performance';
|
||||||
import http from '../../api/http';
|
import http from '../../api/http';
|
||||||
import { useIsMobile } from '../../hooks/useBreakpoint';
|
import { useIsMobile } from '../../hooks/useBreakpoint';
|
||||||
import dayjs from 'dayjs';
|
import dayjs from 'dayjs';
|
||||||
@@ -85,7 +85,7 @@ const PerformanceReview: React.FC = () => {
|
|||||||
|
|
||||||
// Initialize form with existing manager scores if available
|
// Initialize form with existing manager scores if available
|
||||||
const itemScores: Record<string, ItemScoreForm> = {};
|
const itemScores: Record<string, ItemScoreForm> = {};
|
||||||
data.performanceItems?.forEach((item) => {
|
data.performanceItems?.forEach((item: PerformanceItemDetail) => {
|
||||||
itemScores[item.itemName] = {
|
itemScores[item.itemName] = {
|
||||||
managerScore: item.managerScore ?? item.aiScore ?? item.selfScore ?? 0,
|
managerScore: item.managerScore ?? item.aiScore ?? item.selfScore ?? 0,
|
||||||
scoreExplanation: item.managerExplanation ?? '',
|
scoreExplanation: item.managerExplanation ?? '',
|
||||||
|
|||||||
@@ -42,12 +42,12 @@ interface SubordinateRecord extends PerformanceRecord {
|
|||||||
userPosition?: string;
|
userPosition?: string;
|
||||||
}
|
}
|
||||||
|
|
||||||
interface PageResult<T> {
|
// interface PageResult<T> {
|
||||||
list: T[];
|
// list: T[];
|
||||||
total: number;
|
// total: number;
|
||||||
page: number;
|
// page: number;
|
||||||
pageSize: number;
|
// pageSize: number;
|
||||||
}
|
// }
|
||||||
|
|
||||||
const SubordinateList: React.FC = () => {
|
const SubordinateList: React.FC = () => {
|
||||||
const navigate = useNavigate();
|
const navigate = useNavigate();
|
||||||
|
|||||||
Reference in New Issue
Block a user