🎨 Updated
This commit is contained in:
@@ -415,9 +415,10 @@ export const useConfigStore = defineStore('config', () => {
|
||||
// 开机启动配置相关方法
|
||||
setStartAtLogin: async (value: boolean) => {
|
||||
await safeCall(async () => {
|
||||
// 先调用系统设置
|
||||
// 先更新配置文件
|
||||
await updateGeneralConfig('startAtLogin', value);
|
||||
// 再调用系统设置API
|
||||
await StartupService.SetEnabled(value);
|
||||
state.config.general.startAtLogin = value;
|
||||
}, 'config.startupFailed', 'config.startupSuccess');
|
||||
}
|
||||
};
|
||||
|
@@ -73,7 +73,7 @@ const goBackToEditor = async () => {
|
||||
<style scoped lang="scss">
|
||||
.settings-container {
|
||||
width: 100%;
|
||||
height: 100vh;
|
||||
height: 100%;
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
background-color: var(--settings-bg);
|
||||
@@ -193,7 +193,7 @@ const goBackToEditor = async () => {
|
||||
.settings-content {
|
||||
flex: 1;
|
||||
height: 100%;
|
||||
padding: 20px 20px 40px 20px;
|
||||
padding: 20px;
|
||||
overflow-y: auto;
|
||||
background-color: var(--settings-bg);
|
||||
}
|
||||
|
@@ -75,7 +75,6 @@ const updateSystemTheme = async (event: Event) => {
|
||||
<style scoped lang="scss">
|
||||
.settings-page {
|
||||
max-width: 1000px;
|
||||
padding-bottom: 48px;
|
||||
}
|
||||
|
||||
.select-input {
|
||||
|
@@ -263,7 +263,6 @@ const handleAutoSaveDelayChange = async (event: Event) => {
|
||||
<style scoped lang="scss">
|
||||
.settings-page {
|
||||
max-width: 800px;
|
||||
padding-bottom: 48px;
|
||||
}
|
||||
|
||||
.number-control {
|
||||
|
@@ -1,7 +1,7 @@
|
||||
<script setup lang="ts">
|
||||
import {useConfigStore} from '@/stores/configStore';
|
||||
import {useI18n} from 'vue-i18n';
|
||||
import {computed, onUnmounted, ref, watch} from 'vue';
|
||||
import {computed, onUnmounted, ref} from 'vue';
|
||||
import SettingSection from '../components/SettingSection.vue';
|
||||
import SettingItem from '../components/SettingItem.vue';
|
||||
import ToggleSwitch from '../components/ToggleSwitch.vue';
|
||||
@@ -403,7 +403,6 @@ onUnmounted(() => {
|
||||
<style scoped lang="scss">
|
||||
.settings-page {
|
||||
max-width: 800px;
|
||||
padding-bottom: 48px;
|
||||
}
|
||||
|
||||
.hotkey-selector {
|
||||
|
@@ -228,7 +228,6 @@ onMounted(async () => {
|
||||
<style scoped lang="scss">
|
||||
.settings-page {
|
||||
max-width: 800px;
|
||||
padding-bottom: 48px;
|
||||
}
|
||||
|
||||
.key-bindings-container {
|
||||
|
@@ -89,7 +89,6 @@ const downloadUpdate = () => {
|
||||
<style scoped lang="scss">
|
||||
.settings-page {
|
||||
max-width: 800px;
|
||||
padding-bottom: 48px;
|
||||
}
|
||||
|
||||
.update-info {
|
||||
|
@@ -34,7 +34,7 @@ export default defineConfig(({mode}: { mode: string }): object => {
|
||||
write: true,
|
||||
emptyOutDir: true,
|
||||
brotliSize: true,
|
||||
chunkSizeWarningLimit: 1500,
|
||||
chunkSizeWarningLimit: 2000,
|
||||
watch: null,
|
||||
rollupOptions: {
|
||||
output: {
|
||||
|
Reference in New Issue
Block a user