|
@@ -46,9 +46,12 @@ watchEffect(() => {
|
|
const loading = ref(false);
|
|
const loading = ref(false);
|
|
const onSubmit = async () => {
|
|
const onSubmit = async () => {
|
|
loading.value = true;
|
|
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>
|
|
</script>
|
|
|
|
|