feat(config): 更新项目配置和依赖库版本

- 添加 getFileUrlFromServer 初始化调用
- 配置百度地图API密钥到全局窗口对象
- 更新 zy-react-library 从 1.0.127 到 1.2.3 版本
- 修改 API_HOST 配置为空字符串并注释原地址
- 更新文件服务器地址为生产环境URL
- 配置eslint格式化器支持css格式化
master
fangjiakai 2026-03-11 15:44:51 +08:00
parent 2c35e03824
commit ed38e8c510
4 changed files with 11 additions and 5 deletions

View File

@ -1,8 +1,10 @@
import antfu from "@antfu/eslint-config";
export default antfu({
// Remove formatter configuration that might be causing issues
formatters: false,
formatters: {
html: false,
css: true,
},
test: false,
typescript: true,
react: true,

View File

@ -9,7 +9,8 @@ module.exports = {
// 应用后端分支名称,部署上线需要
javaGitBranch: "<branch-name>",
// 接口服务地址
API_HOST: "http://192.168.20.100:30140",
API_HOST: "",
// API_HOST: "http://192.168.20.100:30140",
},
production: {
// 应用后端分支名称,部署上线需要
@ -24,7 +25,7 @@ module.exports = {
contextInject: {
// 应用Key
appKey: "",
fileUrl: "http://192.168.20.240:9787/mnt",
fileUrl: "https://jpfz.qhdsafety.com/gbsFileTest/",
},
// public/index.html注入全局变量
windowInject: {

View File

@ -30,7 +30,7 @@
"lodash-es": "^4.17.21",
"react": "^18.2.0",
"react-dom": "^18.2.0",
"zy-react-library": "^1.0.127"
"zy-react-library": "^1.2.3"
},
"devDependencies": {
"@antfu/eslint-config": "^5.4.1",

View File

@ -1,10 +1,12 @@
import { setJJBCommonAntdMessage } from "@cqsjjb/jjb-common-lib";
import { getFileUrlFromServer } from "zy-react-library/utils";
import { setup } from "@cqsjjb/jjb-dva-runtime";
import { message } from "antd";
import dayjs from "dayjs";
import "dayjs/locale/zh-cn";
import "../blessed_by_buddha";
getFileUrlFromServer();
require("antd/dist/reset.css");
require("zy-react-library/css/common.less");
dayjs.locale("zh-cn");
@ -12,6 +14,7 @@ setJJBCommonAntdMessage(message);
const app = setup();
window.mapBaiDuKey = "OElqFYoKiAH8KFtph8ftLKF5NlNrbCUr";
// 非底座环境运行
if (!window.__POWERED_BY_QIANKUN__) {
// 云组件默认依赖