fix(build): 修复打包过程中的依赖和导入错误

- 安装缺失的 sass 依赖解决预处理器报错问题
- 安装 element-plus 组件库依赖,修复相关页面构建失败
- 修正 customerLead 页面错误导入的 listUser 为 listUsers
- 确认修复后 pnpm build 成功,产物正常生成
- 更新 package.json 和 pnpm-lock.yaml,引入新依赖并锁定版本
This commit is contained in:
2026-07-20 12:07:09 +08:00
parent f0efe079e7
commit 324244fa11
4 changed files with 374 additions and 14 deletions

View File

@@ -337,7 +337,7 @@ import {
LeadSourceOptions,
FollowTypeOptions
} from '@/api/cms/customerLead/model';
import { listUser } from '@/api/system/user';
import { listUsers } from '@/api/system/user';
const loading = ref(false);
const tableData = ref<CustomerLead[]>([]);
@@ -461,7 +461,7 @@ async function loadStatistics() {
// 加载业务员列表
async function loadSalesmanList() {
try {
const result = await listUser({ type: 1, pageSize: 100 });
const result = await listUsers({ type: 1, pageSize: 100 });
salesmanList.value = result.list || [];
} catch (error) {
console.error('加载业务员列表失败', error);