Refactor code structure for improved readability and maintainability
This commit is contained in:
@@ -9,6 +9,10 @@ const { updateProfile } = useUserStore();
|
|||||||
const platform = usePlatform();
|
const platform = usePlatform();
|
||||||
const { checkAndPromptUpdate } = useAppUpdate();
|
const { checkAndPromptUpdate } = useAppUpdate();
|
||||||
|
|
||||||
|
onBeforeMount(() => {
|
||||||
|
loadSavedLanguage();
|
||||||
|
});
|
||||||
|
|
||||||
onMounted(() => {
|
onMounted(() => {
|
||||||
if (!isAuthenticated.value)
|
if (!isAuthenticated.value)
|
||||||
return;
|
return;
|
||||||
@@ -26,10 +30,6 @@ onMounted(() => {
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
onBeforeMount(() => {
|
|
||||||
loadSavedLanguage();
|
|
||||||
});
|
|
||||||
|
|
||||||
watch(locale, (newLocale) => {
|
watch(locale, (newLocale) => {
|
||||||
document.querySelector("html")?.setAttribute("lang", newLocale);
|
document.querySelector("html")?.setAttribute("lang", newLocale);
|
||||||
}, { immediate: true });
|
}, { immediate: true });
|
||||||
|
|||||||
@@ -136,6 +136,6 @@ export const TradingViewChart = defineComponent({
|
|||||||
}, 0);
|
}, 0);
|
||||||
});
|
});
|
||||||
|
|
||||||
return () => <div ref={el} class="w-full" style={styles.value} />;
|
return () => h("div", { ref: el, class: "w-full", style: styles.value });
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
1957
types/datafeed-api.d.ts
vendored
1957
types/datafeed-api.d.ts
vendored
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user