Refactor code structure for improved readability and maintainability
This commit is contained in:
@@ -9,6 +9,10 @@ const { updateProfile } = useUserStore();
|
||||
const platform = usePlatform();
|
||||
const { checkAndPromptUpdate } = useAppUpdate();
|
||||
|
||||
onBeforeMount(() => {
|
||||
loadSavedLanguage();
|
||||
});
|
||||
|
||||
onMounted(() => {
|
||||
if (!isAuthenticated.value)
|
||||
return;
|
||||
@@ -26,10 +30,6 @@ onMounted(() => {
|
||||
}
|
||||
});
|
||||
|
||||
onBeforeMount(() => {
|
||||
loadSavedLanguage();
|
||||
});
|
||||
|
||||
watch(locale, (newLocale) => {
|
||||
document.querySelector("html")?.setAttribute("lang", newLocale);
|
||||
}, { immediate: true });
|
||||
|
||||
@@ -136,6 +136,6 @@ export const TradingViewChart = defineComponent({
|
||||
}, 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