From d255a0bc7880ed0ae2ff34d37b96bedfaf32579d Mon Sep 17 00:00:00 2001 From: XieYongHong <18010623010@163.com> Date: Tue, 24 Oct 2023 15:28:34 +0800 Subject: [PATCH] fix: bug#18263 --- README.md | 12 ++++++++++++ package.json | 2 +- src/App.vue | 6 +++++- src/components/Layout/BasicLayoutPage.vue | 6 ++++-- src/main.ts | 2 +- src/store/system.ts | 2 +- src/style.less | 6 +++--- yarn.lock | 8 ++++---- 8 files changed, 31 insertions(+), 13 deletions(-) diff --git a/README.md b/README.md index d9709551..ee607b6f 100644 --- a/README.md +++ b/README.md @@ -48,6 +48,18 @@ yarn dev:force 此处可以更改系统名称、主题色、系统logo、浏览器页签等 +#### 主题色 + +```javascript +// src/App.vue + +ConfigProvider.config({ + theme: { + primaryColor: "#315efb" + } +}) +``` + #### 2.默认配置 在代码根目录找到`config\config.ts`文件 diff --git a/package.json b/package.json index e3ce16ae..d6fd157d 100644 --- a/package.json +++ b/package.json @@ -25,7 +25,7 @@ "event-source-polyfill": "^1.0.31", "global": "^4.4.0", "jetlinks-store": "^0.0.3", - "jetlinks-ui-components": "^1.0.34", + "jetlinks-ui-components": "^1.0.34-2", "js-cookie": "^3.0.1", "jsencrypt": "^3.3.2", "less": "^4.1.3", diff --git a/src/App.vue b/src/App.vue index 8c6581c2..0c14af16 100644 --- a/src/App.vue +++ b/src/App.vue @@ -15,7 +15,11 @@ const system = useSystem(); const {configInfo} = storeToRefs(system); system.setDocumentTitle() - +ConfigProvider.config({ + theme: { + primaryColor: "#315efb" + } +})