| | |
| | | const sideTheme = ref(settingsStore.sideTheme) |
| | | const tagsViewPersist = ref(settingsStore.tagsViewPersist) |
| | | const storeSettings = computed(() => settingsStore) |
| | | const predefineColors = ref(["#409EFF", "#ff4500", "#ff8c00", "#ffd700", "#90ee90", "#00ced1", "#1e90ff", "#c71585"]) |
| | | const predefineColors = ref(["#80BF40", "#ff4500", "#ff8c00", "#ffd700", "#90ee90", "#00ced1", "#1e90ff", "#c71585"]) |
| | | |
| | | /** 是否需要dynamicTitle */ |
| | | function dynamicTitleChange() { |
| | |
| | | "sideTheme": storeSettings.value.sideTheme, |
| | | "theme": storeSettings.value.theme |
| | | } |
| | | localStorage.setItem("layout-setting", JSON.stringify(layoutSetting)) |
| | | localStorage.setItem("layout-setting-v2", JSON.stringify(layoutSetting)) |
| | | setTimeout(proxy.$modal.closeLoading(), 1000) |
| | | } |
| | | |
| | | function resetSetting() { |
| | | proxy.$cache.local.remove('tags-view-visited') |
| | | proxy.$modal.loading("正在清除设置缓存并刷新,请稍候...") |
| | | localStorage.removeItem("layout-setting") |
| | | localStorage.removeItem("layout-setting-v2") |
| | | setTimeout("window.location.reload()", 1000) |
| | | } |
| | | |