fix
This commit is contained in:
@@ -74,14 +74,7 @@ const runCode = async () => {
|
|||||||
|
|
||||||
const languageOptions: DropdownOption[] = problem.value!.languages.map(
|
const languageOptions: DropdownOption[] = problem.value!.languages.map(
|
||||||
(it) => ({
|
(it) => ({
|
||||||
label: () =>
|
label: () => LANGUAGE_SHOW_VALUE[it],
|
||||||
h("div", { style: "display: flex; align-items: center;" }, [
|
|
||||||
h("img", {
|
|
||||||
src: `/${it}.svg`,
|
|
||||||
style: { width: "16px", height: "16px", marginRight: "8px" },
|
|
||||||
}),
|
|
||||||
LANGUAGE_SHOW_VALUE[it],
|
|
||||||
]),
|
|
||||||
value: it,
|
value: it,
|
||||||
}),
|
}),
|
||||||
)
|
)
|
||||||
|
|||||||
Reference in New Issue
Block a user