feat(config): 更新项目配置和依赖库版本
- 添加 getFileUrlFromServer 初始化调用 - 配置百度地图API密钥到全局窗口对象 - 更新 zy-react-library 从 1.0.127 到 1.2.3 版本 - 修改 API_HOST 配置为空字符串并注释原地址 - 更新文件服务器地址为生产环境URL - 配置eslint格式化器支持css格式化master
parent
2c35e03824
commit
ed38e8c510
|
|
@ -1,8 +1,10 @@
|
||||||
import antfu from "@antfu/eslint-config";
|
import antfu from "@antfu/eslint-config";
|
||||||
|
|
||||||
export default antfu({
|
export default antfu({
|
||||||
// Remove formatter configuration that might be causing issues
|
formatters: {
|
||||||
formatters: false,
|
html: false,
|
||||||
|
css: true,
|
||||||
|
},
|
||||||
test: false,
|
test: false,
|
||||||
typescript: true,
|
typescript: true,
|
||||||
react: true,
|
react: true,
|
||||||
|
|
|
||||||
|
|
@ -9,7 +9,8 @@ module.exports = {
|
||||||
// 应用后端分支名称,部署上线需要
|
// 应用后端分支名称,部署上线需要
|
||||||
javaGitBranch: "<branch-name>",
|
javaGitBranch: "<branch-name>",
|
||||||
// 接口服务地址
|
// 接口服务地址
|
||||||
API_HOST: "http://192.168.20.100:30140",
|
API_HOST: "",
|
||||||
|
// API_HOST: "http://192.168.20.100:30140",
|
||||||
},
|
},
|
||||||
production: {
|
production: {
|
||||||
// 应用后端分支名称,部署上线需要
|
// 应用后端分支名称,部署上线需要
|
||||||
|
|
@ -24,7 +25,7 @@ module.exports = {
|
||||||
contextInject: {
|
contextInject: {
|
||||||
// 应用Key
|
// 应用Key
|
||||||
appKey: "",
|
appKey: "",
|
||||||
fileUrl: "http://192.168.20.240:9787/mnt",
|
fileUrl: "https://jpfz.qhdsafety.com/gbsFileTest/",
|
||||||
},
|
},
|
||||||
// public/index.html注入全局变量
|
// public/index.html注入全局变量
|
||||||
windowInject: {
|
windowInject: {
|
||||||
|
|
|
||||||
|
|
@ -30,7 +30,7 @@
|
||||||
"lodash-es": "^4.17.21",
|
"lodash-es": "^4.17.21",
|
||||||
"react": "^18.2.0",
|
"react": "^18.2.0",
|
||||||
"react-dom": "^18.2.0",
|
"react-dom": "^18.2.0",
|
||||||
"zy-react-library": "^1.0.127"
|
"zy-react-library": "^1.2.3"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@antfu/eslint-config": "^5.4.1",
|
"@antfu/eslint-config": "^5.4.1",
|
||||||
|
|
|
||||||
|
|
@ -1,10 +1,12 @@
|
||||||
import { setJJBCommonAntdMessage } from "@cqsjjb/jjb-common-lib";
|
import { setJJBCommonAntdMessage } from "@cqsjjb/jjb-common-lib";
|
||||||
|
import { getFileUrlFromServer } from "zy-react-library/utils";
|
||||||
import { setup } from "@cqsjjb/jjb-dva-runtime";
|
import { setup } from "@cqsjjb/jjb-dva-runtime";
|
||||||
import { message } from "antd";
|
import { message } from "antd";
|
||||||
import dayjs from "dayjs";
|
import dayjs from "dayjs";
|
||||||
import "dayjs/locale/zh-cn";
|
import "dayjs/locale/zh-cn";
|
||||||
import "../blessed_by_buddha";
|
import "../blessed_by_buddha";
|
||||||
|
|
||||||
|
getFileUrlFromServer();
|
||||||
require("antd/dist/reset.css");
|
require("antd/dist/reset.css");
|
||||||
require("zy-react-library/css/common.less");
|
require("zy-react-library/css/common.less");
|
||||||
dayjs.locale("zh-cn");
|
dayjs.locale("zh-cn");
|
||||||
|
|
@ -12,6 +14,7 @@ setJJBCommonAntdMessage(message);
|
||||||
|
|
||||||
const app = setup();
|
const app = setup();
|
||||||
|
|
||||||
|
window.mapBaiDuKey = "OElqFYoKiAH8KFtph8ftLKF5NlNrbCUr";
|
||||||
// 非底座环境运行
|
// 非底座环境运行
|
||||||
if (!window.__POWERED_BY_QIANKUN__) {
|
if (!window.__POWERED_BY_QIANKUN__) {
|
||||||
// 云组件默认依赖
|
// 云组件默认依赖
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue