no message

master^2
853931625@qq.com 2026-05-22 09:05:54 +08:00
parent 1a09e5e8c7
commit 3c6497b9f8
6 changed files with 16 additions and 12 deletions

View File

@ -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,
@ -18,6 +20,7 @@ export default antfu({
"react-hooks-extra/no-unnecessary-use-prefix": "off", "react-hooks-extra/no-unnecessary-use-prefix": "off",
"react-hooks-extra/prefer-use-state-lazy-initialization": "off", "react-hooks-extra/prefer-use-state-lazy-initialization": "off",
"react-hooks/exhaustive-deps": "off", "react-hooks/exhaustive-deps": "off",
"react/no-implicit-key": "off",
}, },
javascript: { javascript: {
"no-console": process.env.NODE_ENV === "production" ? "error" : "warn", "no-console": process.env.NODE_ENV === "production" ? "error" : "warn",

View File

@ -9,7 +9,7 @@ module.exports = {
// 应用后端分支名称,部署上线需要 // 应用后端分支名称,部署上线需要
javaGitBranch: "<branch-name>", javaGitBranch: "<branch-name>",
// 接口服务地址 // 接口服务地址
API_HOST: "", API_HOST: "https://gbs-gateway.qhdsafety.com",
}, },
production: { production: {
// 应用后端分支名称,部署上线需要 // 应用后端分支名称,部署上线需要

View File

@ -3,7 +3,8 @@
"baseUrl": "src", "baseUrl": "src",
"paths": { "paths": {
"~/*": ["*"] "~/*": ["*"]
} },
"jsx": "react"
}, },
"include": ["src"] "include": ["src"]
} }

View File

@ -18,24 +18,24 @@
"lint": "eslint --ext .js,.jsx,.tsx --fix src" "lint": "eslint --ext .js,.jsx,.tsx --fix src"
}, },
"dependencies": { "dependencies": {
"@ant-design/icons": "latest", "@ant-design/icons": "^5.6.1",
"@ant-design/pro-components": "^2.8.10", "@ant-design/pro-components": "^2.8.10",
"@cqsjjb/jjb-common-decorator": "latest", "@cqsjjb/jjb-common-decorator": "latest",
"@cqsjjb/jjb-common-lib": "latest", "@cqsjjb/jjb-common-lib": "latest",
"@cqsjjb/jjb-dva-runtime": "latest", "@cqsjjb/jjb-dva-runtime": "latest",
"@cqsjjb/jjb-react-admin-component": "latest", "@cqsjjb/jjb-react-admin-component": "latest",
"ahooks": "^3.9.5", "ahooks": "^3.9.5",
"antd": "5.27.6", "antd": "^5.27.6",
"dayjs": "^1.11.7", "dayjs": "^1.11.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.2.4" "zy-react-library": "latest"
}, },
"devDependencies": { "devDependencies": {
"@antfu/eslint-config": "^5.4.1", "@antfu/eslint-config": "^5.4.1",
"@babel/plugin-proposal-decorators": "^7.19.3", "@babel/plugin-proposal-decorators": "^7.19.3",
"@cqsjjb/scripts": "2.0.0-alpha-1", "@cqsjjb/scripts": "2.0.0",
"@eslint-react/eslint-plugin": "^2.2.2", "@eslint-react/eslint-plugin": "^2.2.2",
"cross-env": "^7.0.3", "cross-env": "^7.0.3",
"eslint": "^9.37.0", "eslint": "^9.37.0",

View File

@ -49,6 +49,6 @@
<noscript>此网页需要开启JavaScript功能。</noscript> <noscript>此网页需要开启JavaScript功能。</noscript>
<!-- MAIN --> <!-- MAIN -->
<% const { root } = $element; %> <% const { root } = $element; %>
<div id="<%= root.id %>" style="width: 100%; height: 100%; position: relative;overflow-y: auto;"></div> <div id="<%= root.id %>" style="width: 100%; height: 100%; position: relative;overflow-y: auto"></div>
</body> </body>
</html> </html>

View File

@ -2,18 +2,18 @@ import { setJJBCommonAntdMessage } from "@cqsjjb/jjb-common-lib";
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 { getFileUrlFromServer } from "zy-react-library/utils";
import "dayjs/locale/zh-cn"; import "dayjs/locale/zh-cn";
import "../blessed_by_buddha"; import "../blessed_by_buddha";
import { getFileUrlFromServer } from "zy-react-library/utils";
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");
setJJBCommonAntdMessage(message); setJJBCommonAntdMessage(message);
getFileUrlFromServer();
const app = setup(); const app = setup();
getFileUrlFromServer();
// 非底座环境运行 // 非底座环境运行
if (!window.__POWERED_BY_QIANKUN__) { if (!window.__POWERED_BY_QIANKUN__) {
// 云组件默认依赖 // 云组件默认依赖