fix: bug#18263

This commit is contained in:
XieYongHong 2023-10-24 15:28:34 +08:00
parent 16d9f5a158
commit d255a0bc78
8 changed files with 31 additions and 13 deletions

View File

@ -48,6 +48,18 @@ yarn dev:force
此处可以更改系统名称、主题色、系统logo、浏览器页签等
#### 主题色
```javascript
// src/App.vue
ConfigProvider.config({
theme: {
primaryColor: "#315efb"
}
})
```
#### 2.默认配置
在代码根目录找到`config\config.ts`文件

View File

@ -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",

View File

@ -15,7 +15,11 @@ const system = useSystem();
const {configInfo} = storeToRefs(system);
system.setDocumentTitle()
ConfigProvider.config({
theme: {
primaryColor: "#315efb"
}
})
</script>
<style scoped>

View File

@ -107,8 +107,6 @@ const jump = (item: any) => {
router.push(item.path)
}
watchEffect(() => {
if (router.currentRoute) {
const paths = router.currentRoute.value.matched
@ -116,6 +114,10 @@ watchEffect(() => {
basicLayout.value.openKeys = paths.map(item => item.path)
console.log(paths) //
}
if (route.query?.layout === 'false') {
basicLayout.value.pure = true
}
})
const toDoc = () => window.open('http://doc.v2.jetlinks.cn/');

View File

@ -4,7 +4,7 @@ import store from './store'
import components from './components'
import router from './router'
import './style.less'
import 'ant-design-vue/dist/antd.variable.min.css'
import dayjs from 'dayjs';
import 'dayjs/locale/zh-cn';
dayjs.locale('zh-cn');

View File

@ -89,4 +89,4 @@ export const useSystem = defineStore('system', {
}
}
}
})
})

View File

@ -30,9 +30,9 @@ body {
.ant-pro-top-nav-header {
.ant-menu-item {
padding: 0 10px !important;
&:not(:first-child) {
margin-left: 8px !important;
padding: 0 14px !important;
&:first-child {
padding: 0 10px !important;
}
}
}

View File

@ -3738,10 +3738,10 @@ jetlinks-store@^0.0.3:
resolved "https://registry.npmjs.org/jetlinks-store/-/jetlinks-store-0.0.3.tgz"
integrity sha512-AZf/soh1hmmwjBZ00fr1emuMEydeReaI6IBTGByQYhTmK1Zd5pQAxC7WLek2snRAn/HHDgJfVz2hjditKThl6Q==
jetlinks-ui-components@^1.0.34:
version "1.0.34"
resolved "https://registry.npmjs.org/jetlinks-ui-components/-/jetlinks-ui-components-1.0.34.tgz#e158f87cf626904fd97b63fa379dbea12dc0230f"
integrity sha512-1O41g3VYrwnHJ3AWCbfbTaq62B55EwLvOC9frbiF1y/Lf+GZBkK1D1R4+gFQF/pgDdonlZoaT5pE1mdZWXrfHQ==
jetlinks-ui-components@^1.0.34-2:
version "1.0.34-2"
resolved "https://registry.npmjs.org/jetlinks-ui-components/-/jetlinks-ui-components-1.0.34-2.tgz#8acd9f5dd4e5baa89703391620c80545c60ea98d"
integrity sha512-Z8/TRoJut1CuGsXXkzUYwvmKdQ1FhvXc46uK308M76Ezv4iJIGphwt1ancqVst0+WRBWoG6ps2ZsBbqCSQB7Rg==
dependencies:
"@vueuse/core" "^9.12.0"
"@vueuse/router" "^9.13.0"