refactor(system): 调整基础配置并优化地图组件
- 修改高德地图 API 密钥和密钥安全码获取方式 - 调整基础配置中的标题和头部主题颜色 - 修改暗黑主题背景颜色 - 更新开发环境代理配置
This commit is contained in:
parent
67da9dedf8
commit
2f4cd3b940
|
@ -37,11 +37,17 @@
|
|||
import { initAMapApiLoader } from '@vuemap/vue-amap';
|
||||
import '@vuemap/vue-amap/dist/style.css';
|
||||
import { EnvironmentOutlined } from '@ant-design/icons-vue';
|
||||
import { useSystem } from '@/store/system';
|
||||
import { storeToRefs } from 'pinia'
|
||||
|
||||
const system = useSystem();
|
||||
const {configInfo} = storeToRefs(system);
|
||||
console.log("configInfo",configInfo)
|
||||
|
||||
initAMapApiLoader({
|
||||
// key: '95fa72137f4263f8e64ae01f766ad09c',
|
||||
key: 'a0415acfc35af15f10221bfa5a6850b4',
|
||||
securityJsCode: 'cae6108ec3dd222f946d1a7237c78be0',
|
||||
key: configInfo.value.amap.apiKey || '3bef1ec2347fff12a6b7da11af70d194',
|
||||
securityJsCode: configInfo.value.amap.secretKey || '259f338768822197a09e3e4959e82cce',
|
||||
});
|
||||
|
||||
interface EmitProps {
|
||||
|
|
|
@ -38,7 +38,7 @@ body {
|
|||
}
|
||||
|
||||
.dark {
|
||||
background-color: #3F4960 !important;
|
||||
background-color: #001529 !important;
|
||||
|
||||
h1,& .right-content, & .anticon-bell {
|
||||
color: #fff !important;
|
||||
|
@ -49,7 +49,7 @@ body {
|
|||
}
|
||||
|
||||
.ant-menu {
|
||||
background-color: #3F4960 !important;
|
||||
background-color: #001529 !important;
|
||||
|
||||
.ant-menu-item-selected,& .ant-menu-item-active {
|
||||
transition: background 0.3s cubic-bezier(0.645, 0.045, 0.355, 1) !important;
|
||||
|
@ -85,10 +85,10 @@ body {
|
|||
}
|
||||
|
||||
.ant-layout-sider-dark {
|
||||
background: #fff !important;
|
||||
background: #001529 !important;
|
||||
|
||||
.ant-menu-dark {
|
||||
background: #fff !important;
|
||||
background:#001529 !important;
|
||||
|
||||
span {
|
||||
color: @DarkMenuItemColor;
|
||||
|
|
|
@ -392,7 +392,7 @@ const system = useSystem();
|
|||
const form = reactive<formType>({
|
||||
formValue: {
|
||||
title: '',
|
||||
headerTheme: 'light',
|
||||
headerTheme: 'dark',
|
||||
showRecordNumber: true,
|
||||
recordNumber: '',
|
||||
apiKey: '',
|
||||
|
|
|
@ -91,21 +91,21 @@ export default defineConfig(({ mode}) => {
|
|||
],
|
||||
server: {
|
||||
host:'0.0.0.0',
|
||||
|
||||
port: 8990,
|
||||
proxy: {
|
||||
[env.VITE_APP_BASE_API]: {
|
||||
// target: 'http://192.168.32.226:8844',
|
||||
// target: 'http://192.168.32.244:8881',
|
||||
// target: 'http://192.168.32.217:8844', //张本地
|
||||
// target: 'http://120.77.179.54:8844', // 120测试
|
||||
target: 'http://192.168.33.46:8844', // 本地开发环境
|
||||
// target: 'http://192.168.33.46:8844', // 本地开发环境
|
||||
// target: 'http://192.168.33.99:8844', // 本地开发环境1
|
||||
// target: 'http://192.168.33.6:38848', // 社区版开发环境
|
||||
// target: 'http://192.168.32.207:8844', // 刘本地
|
||||
// target: 'http://192.168.32.187:8844', // 谭本地
|
||||
// target: 'http://192.168.33.6:31320', // 社区版开发环境
|
||||
// target: 'https://demo.jetlinks.cn', // 刘本地
|
||||
target: 'http://192.168.1.17:8848', // 谭本地
|
||||
// target: 'http://192.168.33.66:8844', // 苟本地
|
||||
// target: 'http://192.168.32.137:8844', // 王本地
|
||||
ws: 'ws://192.168.33.46:8844',
|
||||
// target: 'http://192.168.32.189:8844', // 王本地
|
||||
ws: 'ws://192.168.1.17:8844',
|
||||
changeOrigin: true,
|
||||
rewrite: (path) => path.replace(/^\/api/, '')
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue