Browse Source

feat: fix

gemercheung 6 months ago
parent
commit
d27480c21c
1 changed files with 6 additions and 3 deletions
  1. 6 3
      src/view/setting/index.vue

+ 6 - 3
src/view/setting/index.vue

@@ -46,9 +46,12 @@ watchEffect(() => {
 const loading = ref(false);
 const onSubmit = async () => {
   loading.value = true;
-  await setTheme(form.color);
-  await setTitle(form.name);
-  loading.value = false;
+  setTimeout(async () => {
+    await setTheme(form.color);
+    await setTitle(form.name);
+    loading.value = false;
+  }, 1000);
+
 };
 </script>