diff --git a/jjb.config.js b/jjb.config.js index 80a917e..3a148fa 100644 --- a/jjb.config.js +++ b/jjb.config.js @@ -10,13 +10,13 @@ module.exports = { javaGitBranch: "", // 接口服务地址 // API_HOST: "http://192.168.20.100:30140", - API_HOST: "https://gbs-gateway.qhdsafety.com", + API_HOST: "http://localhost:80", }, production: { // 应用后端分支名称,部署上线需要 javaGitBranch: "", // 接口服务地址 - API_HOST: "", + API_HOST: "https://gbs-gateway.qhdsafety.com", }, }, // 应用唯一标识符 diff --git a/package.json b/package.json index 879475f..f9dc40e 100644 --- a/package.json +++ b/package.json @@ -32,7 +32,7 @@ "react": "^18.2.0", "react-dom": "^18.2.0", "react-to-print": "^3.2.0", - "zy-react-library": "^1.1.10" + "zy-react-library": "^1.2.3" }, "devDependencies": { "@antfu/eslint-config": "^5.4.1", diff --git a/src/main.js b/src/main.js index 7f79acf..98323e4 100644 --- a/src/main.js +++ b/src/main.js @@ -2,6 +2,7 @@ import { setJJBCommonAntdMessage } from "@cqsjjb/jjb-common-lib"; import { setup } from "@cqsjjb/jjb-dva-runtime"; import { message } from "antd"; import dayjs from "dayjs"; +import { getFileUrlFromServer } from "zy-react-library/utils"; import "dayjs/locale/zh-cn"; import "../blessed_by_buddha"; @@ -10,7 +11,7 @@ require("zy-react-library/css/common.less"); dayjs.locale("zh-cn"); setJJBCommonAntdMessage(message); - +getFileUrlFromServer(); const app = setup(); // 非底座环境运行