From 7de94e2ea37803216e5afe9d40e7121c87a5344e Mon Sep 17 00:00:00 2001 From: RuoYi <yzz_ivy@163.com> Date: 星期四, 24 四月 2025 14:21:14 +0800 Subject: [PATCH] 富文本复制粘贴图片上传至url --- src/layout/components/Settings/index.vue | 27 +++++++++++++++++---------- 1 files changed, 17 insertions(+), 10 deletions(-) diff --git a/src/layout/components/Settings/index.vue b/src/layout/components/Settings/index.vue index 38f2d2b..7f2bcb7 100644 --- a/src/layout/components/Settings/index.vue +++ b/src/layout/components/Settings/index.vue @@ -38,7 +38,7 @@ <div class="drawer-item"> <span>寮�鍚� TopNav</span> <span class="comp-style"> - <el-switch v-model="settingsStore.topNav" class="drawer-switch" /> + <el-switch v-model="settingsStore.topNav" @change="topNavChange" class="drawer-switch" /> </span> </div> @@ -98,14 +98,24 @@ const storeSettings = computed(() => settingsStore); const predefineColors = ref(["#409EFF", "#ff4500", "#ff8c00", "#ffd700", "#90ee90", "#00ced1", "#1e90ff", "#c71585"]); +/** 鏄惁闇�瑕乼opnav */ +function topNavChange(val) { + if (!val) { + appStore.toggleSideBarHide(false); + permissionStore.setSidebarRouters(permissionStore.defaultRoutes); + } +} + function themeChange(val) { settingsStore.theme = val; handleThemeStyle(val); } + function handleTheme(val) { settingsStore.sideTheme = val; sideTheme.value = val; } + function saveSetting() { proxy.$modal.loading("姝e湪淇濆瓨鍒版湰鍦帮紝璇风◢鍊�..."); let layoutSetting = { @@ -120,11 +130,13 @@ localStorage.setItem("layout-setting", JSON.stringify(layoutSetting)); setTimeout(proxy.$modal.closeLoading(), 1000) } + function resetSetting() { proxy.$modal.loading("姝e湪娓呴櫎璁剧疆缂撳瓨骞跺埛鏂帮紝璇风◢鍊�..."); localStorage.removeItem("layout-setting") setTimeout("window.location.reload()", 1000) } + function openSetting() { showSettings.value = true; } @@ -137,13 +149,15 @@ <style lang='scss' scoped> .setting-drawer-title { margin-bottom: 12px; - color: rgba(0, 0, 0, 0.85); + color: var(--el-text-color-primary, rgba(0, 0, 0, 0.85)); line-height: 22px; font-weight: bold; + .drawer-title { font-size: 14px; } } + .setting-drawer-block-checbox { display: flex; justify-content: flex-start; @@ -162,13 +176,6 @@ height: 48px; } - .custom-img { - width: 48px; - height: 38px; - border-radius: 5px; - box-shadow: 1px 1px 2px #898484; - } - .setting-drawer-block-checbox-selectIcon { position: absolute; top: 0; @@ -185,7 +192,7 @@ } .drawer-item { - color: rgba(0, 0, 0, 0.65); + color: var(--el-text-color-regular, rgba(0, 0, 0, 0.65)); padding: 12px 0; font-size: 14px; -- Gitblit v1.9.3