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" + } +})