diff --git a/.env.development b/.env.development index 10db161..a5744e5 100644 --- a/.env.development +++ b/.env.development @@ -7,8 +7,8 @@ VITE_APP_ENV = 'development' # 招商车研物联网平台/开发环境 VITE_APP_BASE_API = '/dev-api' -VITE_API_URL = http://192.168.0.222:13080 -VITE_WS_URL = ws://192.168.0.222:13080/ws +VITE_API_URL = http://192.168.0.199:13080 +VITE_WS_URL = ws://192.168.0.199:13080/ws VITE_PORT = 80 VITE_INSPECTION_TYPE = "inspection" VITE_MINIO_URL = "http://192.168.28.10:9000/cmvr-iot/" diff --git a/src/App.vue b/src/App.vue index 498b169..1a79052 100644 --- a/src/App.vue +++ b/src/App.vue @@ -16,7 +16,7 @@ onMounted(() => { diff --git a/src/components/HeaderSearch/index.vue b/src/components/HeaderSearch/index.vue index 234531b..8fe7a43 100644 --- a/src/components/HeaderSearch/index.vue +++ b/src/components/HeaderSearch/index.vue @@ -271,7 +271,7 @@ watch(searchPool, (list) => { padding-left: 0; padding-right: 0; box-shadow: none !important; - border-bottom: 1px solid #d9d9d9; + border-bottom: 1px solid var(--min-border-light); vertical-align: middle; } } diff --git a/src/components/ImagePreview/index.vue b/src/components/ImagePreview/index.vue index acd05c5..113986b 100644 --- a/src/components/ImagePreview/index.vue +++ b/src/components/ImagePreview/index.vue @@ -69,14 +69,16 @@ const realHeight = computed(() => @@ -78,12 +75,9 @@ function addIframe() { height: 6px; } -::-webkit-scrollbar-track { - background-color: #f1f1f1; -} - -::-webkit-scrollbar-thumb { - background-color: #c0c0c0; - border-radius: 3px; +@media (max-width: 768px) { + .app-main { + padding: 16px; + } } diff --git a/src/layout/components/Copyright/index.vue b/src/layout/components/Copyright/index.vue index ed589de..693c66e 100644 --- a/src/layout/components/Copyright/index.vue +++ b/src/layout/components/Copyright/index.vue @@ -22,10 +22,10 @@ const content = computed(() => settingsStore.footerContent) height: 36px; padding: 10px 20px; text-align: right; - background-color: #f8f8f8; - color: #666; + background-color: var(--min-bg-page); + color: var(--min-text-secondary); font-size: 14px; - border-top: 1px solid #e7e7e7; + border-top: 1px solid var(--min-border-light); z-index: 999; } - \ No newline at end of file + diff --git a/src/layout/components/Navbar.vue b/src/layout/components/Navbar.vue index 00a0867..a92c654 100644 --- a/src/layout/components/Navbar.vue +++ b/src/layout/components/Navbar.vue @@ -175,14 +175,16 @@ async function toggleTheme(event) { \ No newline at end of file + diff --git a/src/layout/components/Sidebar/Logo.vue b/src/layout/components/Sidebar/Logo.vue index 0373c4e..dee7020 100644 --- a/src/layout/components/Sidebar/Logo.vue +++ b/src/layout/components/Sidebar/Logo.vue @@ -67,8 +67,8 @@ const getLogoTextColor = computed(() => { .sidebar-logo-container { position: relative; width: 100%; - height: 50px; - line-height: 50px; + height: 56px; + line-height: 56px; background: v-bind(getLogoBackground); text-align: center; overflow: hidden; @@ -78,8 +78,8 @@ const getLogoTextColor = computed(() => { width: 100%; & .sidebar-logo { - width: 32px; - height: 32px; + width: 28px; + height: 28px; vertical-align: middle; margin-right: 12px; } @@ -89,7 +89,7 @@ const getLogoTextColor = computed(() => { margin: 0; color: v-bind(getLogoTextColor); font-weight: 600; - line-height: 50px; + line-height: 56px; font-size: 14px; font-family: Avenir, Helvetica Neue, Arial, Helvetica, sans-serif; vertical-align: middle; diff --git a/src/layout/components/Sidebar/index.vue b/src/layout/components/Sidebar/index.vue index 33e1141..bfe790e 100644 --- a/src/layout/components/Sidebar/index.vue +++ b/src/layout/components/Sidebar/index.vue @@ -80,10 +80,20 @@ const activeMenu = computed(() => { border: none; height: 100%; width: 100% !important; + + .el-menu-item, + .el-sub-menu__title { + height: 48px; + line-height: 48px; + margin: 2px 8px; + border-radius: var(--min-radius-sm); + font-size: 14px; + font-weight: 500; + } .el-menu-item, .el-sub-menu__title { &:hover { - background-color: var(--menu-hover, rgba(0, 0, 0, 0.06)) !important; + background-color: var(--menu-hover) !important; } } @@ -91,8 +101,18 @@ const activeMenu = computed(() => { color: v-bind(getMenuTextColor); &.is-active { - color: var(--menu-active-text, #409eff); - background-color: var(--menu-hover, rgba(0, 0, 0, 0.06)) !important; + color: var(--menu-active-text); + background-color: var(--min-primary-soft) !important; + + &::before { + content: ''; + position: absolute; + top: 12px; + bottom: 12px; + left: 0; + width: 2px; + background: var(--min-primary); + } } } diff --git a/src/layout/components/TagsView/index.vue b/src/layout/components/TagsView/index.vue index 2fa2c69..e03f766 100644 --- a/src/layout/components/TagsView/index.vue +++ b/src/layout/components/TagsView/index.vue @@ -8,7 +8,6 @@ :class="isActive(tag) ? 'active' : ''" :to="{ path: tag.path, query: tag.query, fullPath: tag.fullPath }" class="tags-view-item" - :style="activeStyle(tag)" @click.middle="!isAffix(tag) ? closeSelectedTag(tag) : ''" @contextmenu.prevent="openMenu(tag, $event)" > @@ -45,7 +44,6 @@ import ScrollPane from './ScrollPane' import { getNormalPath } from '@/utils/ruoyi' import useTagsViewStore from '@/store/modules/tagsView' -import useSettingsStore from '@/store/modules/settings' import usePermissionStore from '@/store/modules/permission' const visible = ref(false); @@ -61,7 +59,6 @@ const router = useRouter(); const visitedViews = computed(() => useTagsViewStore().visitedViews); const routes = computed(() => usePermissionStore().routes); -const theme = computed(() => useSettingsStore().theme); watch(route, () => { addTags() @@ -85,14 +82,6 @@ function isActive(r) { return r.path === route.path } -function activeStyle(tag) { - if (!isActive(tag)) return {}; - return { - "background-color": theme.value, - "border-color": theme.value - }; -} - function isAffix(tag) { return tag.meta && tag.meta.affix } @@ -259,50 +248,40 @@ function handleScroll() { diff --git a/src/layout/components/TopNav/index.vue b/src/layout/components/TopNav/index.vue index 3810cfe..3a8e461 100644 --- a/src/layout/components/TopNav/index.vue +++ b/src/layout/components/TopNav/index.vue @@ -172,37 +172,37 @@ onMounted(() => { \ No newline at end of file + diff --git a/src/views/corpusManger/corpus/components/CorpusList.vue b/src/views/corpusManger/corpus/components/CorpusList.vue index bb2ccc3..4b51de0 100644 --- a/src/views/corpusManger/corpus/components/CorpusList.vue +++ b/src/views/corpusManger/corpus/components/CorpusList.vue @@ -274,9 +274,10 @@ onBeforeUnmount(() => { \ No newline at end of file + diff --git a/src/views/corpusManger/corpus/components/StatCards.vue b/src/views/corpusManger/corpus/components/StatCards.vue index 32bdb07..83c3f27 100644 --- a/src/views/corpusManger/corpus/components/StatCards.vue +++ b/src/views/corpusManger/corpus/components/StatCards.vue @@ -3,7 +3,7 @@